[FFmpeg-trac] #4961(avformat:new): Invalid free(); ffio_ensure_seekback (aviobuf.c:829)
FFmpeg
trac at avcodec.org
Mon Oct 26 09:09:36 CET 2015
#4961: Invalid free(); ffio_ensure_seekback (aviobuf.c:829)
-------------------------------------+------------------------------------
Reporter: minde | Owner:
Type: defect | Status: new
Priority: important | Component: avformat
Version: git-master | Resolution:
Keywords: crash abort | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+------------------------------------
Changes (by cehoyos):
* keywords: => crash abort
* priority: normal => important
Comment:
From
[http://git.musicpd.org/cgit/master/mpd.git/tree/src/decoder/plugins/FfmpegIo.hxx
FfmpegIo.hxx]:
{{{
struct AvioStream {
uint8_t buffer[8192];
}
}}}
From
[http://git.musicpd.org/cgit/master/mpd.git/tree/src/decoder/plugins/FfmpegDecoderPlugin.cxx
FfmpegDecoderPlugin.cxx]:
{{{
AvioStream stream;
AVIOContext *pb = stream.io;
AVFormatContext *context = avformat_alloc_context();
context->pb = pb;
}}}
I suspect it is either not ok to use a static buffer as
AVIOContext->buffer or you need additional code to use the API like this.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4961#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list