mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 11:40:22 +00:00
Libavcodec common: copy all planes with memcpy_data
This function may not be used at all but just to make sure.
This commit is contained in:
@@ -1238,9 +1238,14 @@ static void memcpy_data(char * __restrict dst_buffer, AVFrame * __restrict frame
|
||||
{
|
||||
UNUSED(rgb_shift);
|
||||
UNUSED(width);
|
||||
for (int y = 0; y < height; ++y) {
|
||||
memcpy(dst_buffer + y * pitch, frame->data[0] + y * frame->linesize[0],
|
||||
frame->linesize[0]);
|
||||
for (int comp = 0; comp < AV_NUM_DATA_POINTERS; ++comp) {
|
||||
if (frame->data[comp] == NULL) {
|
||||
break;
|
||||
}
|
||||
for (int y = 0; y < height; ++y) {
|
||||
memcpy(dst_buffer + y * pitch, frame->data[comp] + y * frame->linesize[comp],
|
||||
frame->linesize[comp]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user