GNOME Bugzilla – Bug 737144
avauddec: keep draining buffers from libav until libav says so
Last modified: 2014-09-24 07:13:10 UTC
Similar to bug 736515 but for the audio decoder. We have to keep draining buffers until libav tells us instead of a try n times loop. I have to say that I haven't had any problems with the current code, so this might not for 1.4.3. But I'm not sure, because you might eventually hit the problem. I initially thought I had the same avviddec problem in avauddec. Then, I realized I had the faad element installed.
Created attachment 286844 [details] [review] drain all samples from libav
commit 24780708beab26904c04742865e3354ed4718af0 Author: Aleix Conchillo Flaqué <aconchillo@gmail.com> Date: Mon Sep 22 14:00:07 2014 -0700 avauddec: drain samples until libav doesn't have more data We use have_data (that comes from libav), instead of only trying 10 times, to know if there are more samples available. The old code was machine dependent as different amount of samples could be decoded by different type of (more powerful) machines, and 10 times was not always sufficient. https://bugzilla.gnome.org/show_bug.cgi?id=737144