mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
ffdec: Check for AV_NOPTS_VALUE in PTS value.
https://bugzilla.gnome.org/show_bug.cgi?id=651625
This commit is contained in:
parent
82463fe8bc
commit
4a66ecdf25
1 changed files with 1 additions and 1 deletions
|
@ -2595,7 +2595,7 @@ gst_ffmpegdec_chain (GstPad * pad, GstBuffer * inbuf)
|
||||||
ffmpegdec->pctx->pts);
|
ffmpegdec->pctx->pts);
|
||||||
|
|
||||||
/* store pts for decoding */
|
/* 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);
|
dec_info = gst_ts_info_get (ffmpegdec, ffmpegdec->pctx->pts);
|
||||||
else {
|
else {
|
||||||
/* ffmpeg sometimes loses track after a flush, help it by feeding a
|
/* ffmpeg sometimes loses track after a flush, help it by feeding a
|
||||||
|
|
Loading…
Reference in a new issue