avviddec: drain frames until libav doesn't have more data
authorIBM Thinklab <oblong@wall-center.(none)>
Thu, 11 Sep 2014 23:37:33 +0000 (19:37 -0400)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 12 Sep 2014 13:26:21 +0000 (16:26 +0300)
commit25ab0036c0a5e35c9ddb203e9b225fdcc5d3360a
treec0d6bbb156181d9361ff4141cc06ba9c62bc3f47
parentf9db6274c28c62a22fbbffca2f156b88355fa93e
avviddec: drain frames 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 frames available. The old code was machine
dependant as different amount of frames 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=736515
ext/libav/gstavviddec.c