From b616405c16ea0b69fbd68a315ec240959114d44e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 26 Jul 2012 17:51:56 +0200 Subject: ffmpeg: reset decoded_frame->pts after rescaling. This ensures its not used afterwards. This commit should not change anything as it should not have been used afterwards. Signed-off-by: Michael Niedermayer --- ffmpeg.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ffmpeg.c') diff --git a/ffmpeg.c b/ffmpeg.c index 736b7e1c97..84efe0d7c1 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2499,6 +2499,8 @@ static int decode_audio(InputStream *ist, AVPacket *pkt, int *got_output) for (i = 0; i < ist->nb_filters; i++) av_buffersrc_add_frame(ist->filters[i]->filter, decoded_frame, 0); + decoded_frame->pts = AV_NOPTS_VALUE; + return ret; } -- cgit v1.2.1