[FFmpeg-devel] [PATCH] Updated video filtering example

Gavin Kinsey gkinsey at ad-holdings.co.uk
Tue Jun 26 16:15:56 CEST 2012


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.

-- 
Gavin Kinsey
AD Holdings Plc


--------------------------------------------------------
New products and video surveillance solutions: - HD IP Video with SD Advanced and Excel Hybrid DVRs, Closed IPTV network architecture, the pure IP NVR Media Server with integrated switch and full range of new CamVu 720, HD IP cameras, 360 Degree, 2/5Mpx cameras with integrated solid state and dual recording. - For robust enterprise IP video, see our dedicated network appliances, NV8 NVR and Cloud NVR with the new Network and Storage Controller. - For early detection and visual verification of fire in commercial premises ask about the FireVu....and for transport applications TransVu leads the field in integrated vehicle surveillance.

--------------------------------------------------------
This email and any files transmitted with it are CONFIDENTIAL and intended solely for the use of the individual or entity to whom they are addressed. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system; you may not copy this message or disclose its contents to anyone. The recipient should check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the Company. Contact Customer Services for details customerservices at dmicros.com


More information about the ffmpeg-devel mailing list