After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 460274 - FFmpeg buffer duration issues
FFmpeg buffer duration issues
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-libav
git master
Other Linux
: Normal normal
: 0.10.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-07-25 15:28 UTC by Julien MOUTTE
Modified: 2007-07-26 20:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch for that issue. (1.56 KB, patch)
2007-07-25 15:28 UTC, Julien MOUTTE
none Details | Review

Description Julien MOUTTE 2007-07-25 15:28:00 UTC
2 different issues :

1) When an ffmpeg demuxer receives a buffer duration of 0 it should set it to CLOCK_TIME_NONE.

2) When an ffmpeg video decoder receives a buffer with CLOCK_TIME_NONE duration it calculates the duration with the framerate. There is a check for a 1000/1 framerate which is the ffmpeg default to indicate "unknown framerate" but that check is only applied against the codec context, not the framerate obtained from the caps. So when using an ffmpeg demuxer together with an ffmpeg video decoder and buffer duration are CLOCK_TIME_NONE it will by default calculate the duration to 1 millisecond when it should stay CLOCK_TIME_NONE.
Comment 1 Julien MOUTTE 2007-07-25 15:28:45 UTC
Created attachment 92399 [details] [review]
Proposed patch for that issue.
Comment 2 Edward Hervey 2007-07-25 15:30:52 UTC
good for me
Comment 3 Julien MOUTTE 2007-07-25 15:46:26 UTC
Fixed in CVS HEAD