summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-26 17:51:56 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-26 17:51:56 +0200
commitb616405c16ea0b69fbd68a315ec240959114d44e (patch)
treef6d0613a53c6cd6e53ab60ed73a47cad01498362 /ffmpeg.c
parente15e5328a7ad008d111e64d49708894ec6280eed (diff)
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 <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
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;
}