Hi!<br><br>I'm using FFmpeg 5.1 for playing videos.<br>For correct handling of the libs I used some examples found with google.<br><br>like:<br><a href="http://dranger.com/ffmpeg/tutorial01.html">http://dranger.com/ffmpeg/tutorial01.html</a><br>
<a href="http://www.inb.uni-luebeck.de/~boehme/using_libavcodec.html">http://www.inb.uni-luebeck.de/~boehme/using_libavcodec.html</a><br><br>But now I run into problems, that some buffers created from FFmpeg are getting bigger and bigger.<br>
I play lots of different videos, an every different video makes the allocated buffer bigger.<br><br>I tested with valgrind too, to be free of any memleaks.<br><br>Are there any functions functions to call else the following?<br>
<br><pre>// 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);</pre><br><br>I couldn't find anything in the documentation, maybe for you it's completely clear, what i'm doing wrong.<br>Do some examples exist?<br>Should I move to a newer version?<br>
<br>Thank you for answers!<br><br>best regards<br>Robert Grasböck<br><br><br><br>-- <br>Ing. Robert Grasböck<br>Leopoldauer Straße 12/27<br>1210 Wien<br>E-Mail: <a href="mailto:robert.grasboeck@gmail.com">robert.grasboeck@gmail.com</a><br>
<br>