[Libav-user] Problems with Buffers

Robert Grasböck robert.grasboeck at gmail.com
Mon May 9 11:35:19 CEST 2011


Hi!

I'm using FFmpeg 5.1 for playing videos.
For correct handling of the libs I used some examples found with google.

like:
http://dranger.com/ffmpeg/tutorial01.html
http://www.inb.uni-luebeck.de/~boehme/using_libavcodec.html

But now I run into problems, that some buffers created from FFmpeg are
getting bigger and bigger.
I play lots of different videos, an every different video makes the
allocated buffer bigger.

I tested with valgrind too, to be free of any memleaks.

Are there any functions functions to call else the following?

// Free the RGB image
delete [] buffer;
av_free(pFrameRGB);

// Free the YUV frame
av_free(pFrame);

// Close the codec
avcodec_close(pCodecCtx);

// Close the video file
av_close_input_file(pFormatCtx);



I couldn't find anything in the documentation, maybe for you it's completely
clear, what i'm doing wrong.
Do some examples exist?
Should I move to a newer version?

Thank you for answers!

best regards
Robert Grasböck



-- 
Ing. Robert Grasböck
Leopoldauer Straße 12/27
1210 Wien
E-Mail: robert.grasboeck at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20110509/129c1481/attachment.html>


More information about the Libav-user mailing list