[FFmpeg-devel] [PATCH] libavformat: Add H264 API test

Ronald S. Bultje rsbultje at gmail.com
Wed Jun 24 18:48:00 CEST 2015


Hi,

On Wed, Jun 24, 2015 at 11:45 AM, Ludmila Glinskih <lglinskih at gmail.com>
wrote:

> вт, 23 июня 2015 г. в 16:21, Ronald S. Bultje <rsbultje at gmail.com>:
> > 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.
>
> 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


More information about the ffmpeg-devel mailing list