ffdec: Fix calculating frame duration from last timestamp and frame count.

Fixes bug #651714.
This commit is contained in:
Raimo Järvi 2011-06-02 18:02:38 +03:00 committed by Sebastian Dröge
parent 4a66ecdf25
commit 8e2404b8df

View file

@ -2538,8 +2538,8 @@ gst_ffmpegdec_chain (GstPad * pad, GstBuffer * inbuf)
}
}
ffmpegdec->last_in = in_timestamp;
ffmpegdec->last_frames = 0;
}
ffmpegdec->last_frames = 0;
GST_LOG_OBJECT (ffmpegdec,
"Received new data of size %u, offset:%" G_GUINT64_FORMAT ", ts:%"