[FFmpeg-devel] [PATCH] Updated video filtering example
Stefano Sabatini
stefasab at gmail.com
Tue Jun 26 19:05:58 CEST 2012
On date Tuesday 2012-06-26 15:15:56 +0100, Gavin Kinsey encoded:
> On Tuesday 26 June 2012 12:47:45 Stefano Sabatini wrote:
> > On date Tuesday 2012-06-26 09:18:33 +0100, Gavin Kinsey encoded:
> > > Updated the video filtering example program based on the audio one.
> >
> > >
> > > @@ -191,7 +199,6 @@ int main(int argc, char **argv)
> > >
> > > avcodec_get_frame_defaults(&frame);
> > > got_frame = 0;
> > > ret = avcodec_decode_video2(dec_ctx, &frame, &got_frame,
> > > &packet);
> > >
> > > - av_free_packet(&packet);
> >
> > Any reason for which you moved this to the end of the loop?
>
> It leaks memory otherwise. It was inside a check for if stream == stream we
> want to filter, so audio packets were being leaked for example.
Thanks, applied as two separate patches.
--
FFmpeg = Fancy and Fascinating Most Ponderous Erotic Gadget
More information about the ffmpeg-devel
mailing list