Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failed in guess_frame_subtypes #1631

Closed
YaLTeR opened this issue Sep 4, 2019 · 0 comments · Fixed by #1630
Closed

Assertion failed in guess_frame_subtypes #1631

YaLTeR opened this issue Sep 4, 2019 · 0 comments · Fixed by #1630

Comments

@YaLTeR
Copy link
Collaborator

YaLTeR commented Sep 4, 2019

This one:

debug_assert!(self.inter_cfg.get_show_frame(idx_in_group_output));

Test that triggers the issue:

#[test]
fn guess_frame_subtypes_assert() {
  let config = Config {
    enc: EncoderConfig {
      width: 1,
      height: 1,
      bit_depth: 8,
      chroma_sampling: ChromaSampling::Cs420,
      chroma_sample_position: ChromaSamplePosition::Unknown,
      pixel_range: PixelRange::Limited,
      color_description: None,
      mastering_display: None,
      content_light: None,
      still_picture: false,
      time_base: Rational { num: 1, den: 25 },
      min_key_frame_interval: 0,
      max_key_frame_interval: 1,
      reservoir_frame_delay: None,
      low_latency: false,
      quantizer: 100,
      min_quantizer: 0,
      bitrate: 16384,
      tune: Tune::Psychovisual,
      tile_cols: 0,
      tile_rows: 0,
      tiles: 0,
      rdo_lookahead_frames: 40,
      speed_settings: SpeedSettings {
        min_block_size: BlockSize::BLOCK_64X64,
        multiref: false,
        fast_deblock: true,
        reduced_tx_set: true,
        tx_domain_distortion: true,
        tx_domain_rate: false,
        encode_bottomup: false,
        rdo_tx_decision: false,
        prediction_modes: PredictionModesSetting::Simple,
        include_near_mvs: false,
        no_scene_detection: true,
        diamond_me: true,
        cdef: true,
        quantizer_rdo: false,
        use_satd_subpel: false,
      },
      show_psnr: false,
      train_rdo: false,
    },
    threads: 1,
  };

  let mut ctx: Context<u8> = config.new_context().unwrap();
  ctx.send_frame(ctx.new_frame()).unwrap();
  ctx.flush();

  ctx.receive_packet().unwrap();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant