diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-02-12 13:27:17 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-04-30 09:02:27 +0200 |
commit | 8f51a89d66aacd9dc5896bac22e62cbd566e7a71 (patch) | |
tree | f31cbb77faa688e0982ede7ead4f0494cf1d4208 /libavcodec/g726.c | |
parent | 09bac9009ea5fd1b458fe1567bd95a9948c44508 (diff) | |
download | ffmpeg-8f51a89d66aacd9dc5896bac22e62cbd566e7a71.tar.gz |
avcodec/avpacket: Don't write into non-writable buffer
The data of an AVPacket may be a part of the data of an AVBufferRef;
Therefore av_grow_packet() doesn't reallocate if the available space in
the actual buffer is sufficient for the enlargement. But given that it
also zeroes the padding it also needs to make sure that the buffer is
actually writable; this commit implements this.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/g726.c')
0 files changed, 0 insertions, 0 deletions