Hi, On Tue, Jun 23, 2015 at 9:05 AM, Ludmila Glinskih <lglinskih at gmail.com> wrote: > + do { > + if (pkt.stream_index != video_stream) > + break; That check shouldn't be necessary for the last frame. Sorry for missing that on the first iteration. Ronald