ffdec: Check for AV_NOPTS_VALUE in PTS value.

https://bugzilla.gnome.org/show_bug.cgi?id=651625
This commit is contained in:
Raimo Järvi 2011-05-31 13:16:26 +03:00 committed by Edward Hervey
parent 82463fe8bc
commit 4a66ecdf25

View file

@ -2595,7 +2595,7 @@ gst_ffmpegdec_chain (GstPad * pad, GstBuffer * inbuf)
ffmpegdec->pctx->pts);
/* store pts for decoding */
if (ffmpegdec->pctx->pts != -1)
if (ffmpegdec->pctx->pts != AV_NOPTS_VALUE && ffmpegdec->pctx->pts != -1)
dec_info = gst_ts_info_get (ffmpegdec, ffmpegdec->pctx->pts);
else {
/* ffmpeg sometimes loses track after a flush, help it by feeding a