- if (download) {
- ptrdiff_t src_linesize[4], dst_linesize[4];
- for (i = 0; i < 4; i++) {
- dst_linesize[i] = dst->linesize[i];
- src_linesize[i] = map->linesize[i];
- }
- av_image_copy_uc_from(dst->data, dst_linesize, map->data, src_linesize,
- ctx->sw_format, src->width, src->height);
- } else {
- av_image_copy(map->data, map->linesize, src->data, src->linesize,
- ctx->sw_format, src->width, src->height);
+ for (i = 0; i < 4; i++) {
+ dst_linesize[i] = dst->linesize[i];
+ src_linesize[i] = map->linesize[i];