mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavc: fix get_buffer() compatibility layer for audio.
planes - FF_ARRAY_ELEMS would be evaluated as unsigned and underflow instead of being negative as was intended.
This commit is contained in:
parent
98cec5c84f
commit
669cc0f364
@ -687,7 +687,7 @@ do { \
|
||||
for (i = 0; i < FFMIN(planes, FF_ARRAY_ELEMS(frame->buf)); i++)
|
||||
WRAP_PLANE(frame->buf[i], frame->extended_data[i], frame->linesize[0]);
|
||||
|
||||
for (i = 0; i < planes - FF_ARRAY_ELEMS(frame->buf); i++)
|
||||
for (i = 0; i < frame->nb_extended_buf; i++)
|
||||
WRAP_PLANE(frame->extended_buf[i],
|
||||
frame->extended_data[i + FF_ARRAY_ELEMS(frame->buf)],
|
||||
frame->linesize[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user