[FFmpeg-devel] Memory leaks using x265 encoder

Nicolas George george at nsup.org
Wed Jan 2 17:38:10 EET 2019

Oliver Collyer (2019-01-02):
> Can you clarify what you mean by "static variables are unacceptable". They're all over the place in ffmpeg (random example https://github.com/FFmpeg/FFmpeg/blob/a0ac49e38ee1d1011c394d7be67d0f08b2281526/libavcodec/ffjni.c <https://github.com/FFmpeg/FFmpeg/blob/a0ac49e38ee1d1011c394d7be67d0f08b2281526/libavcodec/ffjni.c>)... what am I missing?

The JNI stuff is hardly an example of good practice, we are stuck with
java's awful design.

For the rest, they are not static variables, they are static constants.

There are a few cases 


  Nicolas George

More information about the ffmpeg-devel mailing list