diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-11-21 02:32:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-07 03:05:29 +0100 |
commit | 2d16a88a9c6094ceebd3d201f853942fc699a9af (patch) | |
tree | 9dc1b3c1728e5e1e3dad3351b8be59bb8ecf2e28 /libavcodec/eatgq.c | |
parent | edc6f3da0ed58ae3202fea9ba927fd6d4a22c997 (diff) | |
download | ffmpeg-2d16a88a9c6094ceebd3d201f853942fc699a9af.tar.gz |
avcodec: move end zeroing code from av_packet_split_side_data() to avcodec_decode_subtitle2()
This code changes the input packet, which is read only and can in
rare circumstances lead to decoder errors. (i run into one of these in
the audio decoder, which corrupted the packet during av_find_stream_info()
so that actual decoding that single packet failed later)
Until a better fix is implemented, this commit limits the problem.
A better fix might be to make the subtitle decoders not depend on
data[size] = 0 or to copy their input when this is not the case.
(cherry picked from commit 01923bab98506b1e98b4cbf08419364ce6ffea6d)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/eatgq.c')
0 files changed, 0 insertions, 0 deletions