Hi, On Wed, Jun 24, 2015 at 11:45 AM, Ludmila Glinskih <lglins...@gmail.com> wrote:
> вт, 23 июня 2015 г. в 16:21, Ronald S. Bultje <rsbul...@gmail.com>: > > On Tue, Jun 23, 2015 at 9:05 AM, Ludmila Glinskih <lglins...@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. > > Explain me, please, why it's not necessary? Because the packet didn't come from the demuxer, you created it yourself. If the last packet from the demuxer had a different stream_id, it means you wouldn't flush at all. Ronald _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel