mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 14:15:29 +01:00
Merge commit 'a871ef0cc936612bdb0e643196be72efcf0c8986'
* commit 'a871ef0cc936612bdb0e643196be72efcf0c8986': hwaccel: Rename priv_data_size to frame_priv_data_size Conflicts: libavcodec/avcodec.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -265,8 +265,8 @@ static int alloc_picture(H264Context *h, H264Picture *pic)
|
||||
if (h->avctx->hwaccel) {
|
||||
const AVHWAccel *hwaccel = h->avctx->hwaccel;
|
||||
av_assert0(!pic->hwaccel_picture_private);
|
||||
if (hwaccel->priv_data_size) {
|
||||
pic->hwaccel_priv_buf = av_buffer_allocz(hwaccel->priv_data_size);
|
||||
if (hwaccel->frame_priv_data_size) {
|
||||
pic->hwaccel_priv_buf = av_buffer_allocz(hwaccel->frame_priv_data_size);
|
||||
if (!pic->hwaccel_priv_buf)
|
||||
return AVERROR(ENOMEM);
|
||||
pic->hwaccel_picture_private = pic->hwaccel_priv_buf->data;
|
||||
|
||||
Reference in New Issue
Block a user