Hi, On Mon, May 10, 2010 at 1:58 PM, Sebastian Vater <cdgs.basty at googlemail.com> wrote: > Of course, this could be solved other ways, too. But this will make the > code more complex. You probably mean: count = av_clip(extradata_size / 3, 0, 1 << bps); That is a lot shorter and simpler than anything I've seen so far. Ronald