On Dec 22, 2014, at 6:36 PM, Michael Niedermayer <michaelni at gmx.at> wrote: > this looks a bit odd, > see ff_get_line(), it probably allows to simplify this a lot Resubmitting using ff_get_line(). Thanks, Christian