Commit c1aad580 authored by Gildas Bazin's avatar Gildas Bazin

* transcode.c: another fix to avoid 1st frame without pts.

parent b30fa861
...@@ -1789,8 +1789,11 @@ static int transcode_video_ffmpeg_getframebuf(struct AVCodecContext *p_context, ...@@ -1789,8 +1789,11 @@ static int transcode_video_ffmpeg_getframebuf(struct AVCodecContext *p_context,
} }
else p_frame->pts = AV_NOPTS_VALUE; else p_frame->pts = AV_NOPTS_VALUE;
if( p_sys->i_output_pts ) /* make sure 1st frame has a pts > 0 */
{
p_sys->i_input_pts = 0; p_sys->i_input_pts = 0;
p_sys->i_input_dts = 0; p_sys->i_input_dts = 0;
}
return avcodec_default_get_buffer( p_context, p_frame ); return avcodec_default_get_buffer( p_context, p_frame );
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment