Re: [FFmpeg-devel] [PATCH] avformat/rmdec: Fix memleaks upon read_header failure

2021-04-07 Thread Andreas Rheinhardt
Andreas Rheinhardt: > For both the RealMedia as well as the IVR demuxer (which share the same > context) each AVStream's priv_data contains an AVPacket that might > contain data (even when reading the header) and therefore needs to be > unreferenced. Up until now, this has not always been done: >

[FFmpeg-devel] [PATCH] avformat/rmdec: Fix memleaks upon read_header failure

2021-04-07 Thread Andreas Rheinhardt
For both the RealMedia as well as the IVR demuxer (which share the same context) each AVStream's priv_data contains an AVPacket that might contain data (even when reading the header) and therefore needs to be unreferenced. Up until now, this has not always been done: The RealMedia demuxer didn't d