mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #1685: Cross build RTC with FFmpeg
This commit is contained in:
parent
1c75a270b3
commit
1e9de0e191
267 changed files with 12603 additions and 1451 deletions
|
@ -348,7 +348,7 @@ static int dxva2_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst,
|
|||
if (ret < 0)
|
||||
goto fail;
|
||||
|
||||
av_image_copy(map->data, map->linesize, (const uint8_t **)src->data, src->linesize,
|
||||
av_image_copy(map->data, map->linesize, src->data, src->linesize,
|
||||
ctx->sw_format, src->width, src->height);
|
||||
|
||||
fail:
|
||||
|
@ -379,7 +379,7 @@ static int dxva2_transfer_data_from(AVHWFramesContext *ctx, AVFrame *dst,
|
|||
dst_linesize[i] = dst->linesize[i];
|
||||
src_linesize[i] = map->linesize[i];
|
||||
}
|
||||
av_image_copy_uc_from(dst->data, dst_linesize, (const uint8_t **)map->data, src_linesize,
|
||||
av_image_copy_uc_from(dst->data, dst_linesize, map->data, src_linesize,
|
||||
ctx->sw_format, src->width, src->height);
|
||||
fail:
|
||||
av_frame_free(&map);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue