GNOME Bugzilla – Bug 593348
faac encoder produces first buffer with wrong duration
Last modified: 2009-09-01 09:01:59 UTC
If running the following pipeline, you'll notice that the first output buffer has a duration quite a bit larger than those that follow: GST_DEBUG=faac:5 gst-launch alsasrc ! faac ! fakesink The buffer duration of output buffers should be the same as those fed to the encoder. The attached patch fixes the bug.
Created attachment 141907 [details] [review] Fixes bug
Comment on attachment 141907 [details] [review] Fixes bug Please fix the patch to not have whitespace changes.
Created attachment 141998 [details] [review] Rewrite data caching and timestamp handling Rather than some tinkering with timestamps, etc, attached patch removes all the buffer and timestamp voodoo. In stead, use an adapter & co. In particular, it should take care of this buffer duration issue.
Less voodoo is always a good idea.. looks good IMHO :)
commit f81b1e7a4af1ff626a6eddedcae98c2f8b48c08d Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> Date: Sun Aug 30 23:00:35 2009 +0200 faac: rewrite data caching and timestamp handling Also fixes #593348.