ffmpeg: reset decoded_frame->pts after rescaling.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 26 Jul 2012 15:51:56 +0000 (17:51 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 26 Jul 2012 15:51:56 +0000 (17:51 +0200)
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 <michaelni@gmx.at>
ffmpeg.c

index 736b7e1..84efe0d 100644 (file)
--- 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;
 }