}
}
+ if( p_context->frame_rate > 0 && p_context->frame_rate_base > 0 )
+ {
+ p_dec->fmt_out.video.i_frame_rate = p_context->frame_rate;
+ p_dec->fmt_out.video.i_frame_rate_base = p_context->frame_rate_base;
+ }
+
p_pic = p_dec->pf_vout_buffer_new( p_dec );
#ifdef LIBAVCODEC_PP
picture_t *p_pic;
p_dec->fmt_out.video.i_width = p_sys->p_info->sequence->width;
+ p_dec->fmt_out.video.i_visible_width =
+ p_sys->p_info->sequence->picture_width;
p_dec->fmt_out.video.i_height = p_sys->p_info->sequence->height;
+ p_dec->fmt_out.video.i_visible_height =
+ p_sys->p_info->sequence->picture_height;
p_dec->fmt_out.video.i_aspect = p_sys->i_aspect;
+ if( p_sys->p_info->sequence->frame_period > 0 )
+ {
+ p_dec->fmt_out.video.i_frame_rate =
+ (uint32_t)( (uint64_t)1001000000 * 27 /
+ p_sys->p_info->sequence->frame_period );
+ p_dec->fmt_out.video.i_frame_rate_base = 1001;
+ }
+
p_dec->fmt_out.i_codec =
( p_sys->p_info->sequence->chroma_height <
p_sys->p_info->sequence->height ) ?
p_sys->ti.frame_width / p_sys->ti.frame_height;
}
+ if( p_sys->ti.fps_numerator > 0 && p_sys->ti.fps_denominator > 0 )
+ {
+ p_dec->fmt_out.video.i_frame_rate = p_sys->ti.fps_numerator;
+ p_dec->fmt_out.video.i_frame_rate_base = p_sys->ti.fps_denominator;
+ }
+
msg_Dbg( p_dec, "%dx%d %.02f fps video, frame content "
"is %dx%d with offset (%d,%d)",
p_sys->ti.width, p_sys->ti.height,