diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2011-12-25 23:35:06 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2011-12-27 15:20:54 +0100 |
commit | e9af732a1a4c28f81959f19d434c9be609cff22a (patch) | |
tree | b2a150ad86818c9bd675c1a2cef0ebf29e0769de /doc | |
parent | 5764301df3fd71c007a11fecd5ebabdd0fc36591 (diff) | |
download | ffmpeg-e9af732a1a4c28f81959f19d434c9be609cff22a.tar.gz |
lavfi: fix avfilter_default_get_audio_buffer() after changes in av_samples_alloc()
av_samples_alloc() behavior changed in bbb46f3ec, resulting in random
data filling the data[] and linesize[] arrays of the returned
AVFilterBufferRef, which was resulting in wrong behavior in case of code
checking on data[i] nullity.
In particular fixes crash in avfilter_filter_samples():
for (i = 0; samplesref->data[i]; i++)
memcpy(link->cur_buf->data[i], samplesref->data[i], samplesref->linesize[0]);
and correctly fills the linesize[] array for planar data.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions