summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-03-06 18:19:52 +0100
committerLuca Barbato <lu_zero@gentoo.org>2014-05-11 14:59:07 +0200
commita871ef0cc936612bdb0e643196be72efcf0c8986 (patch)
tree6120d3b308ed2f7f660c45ee32aa57afa4f2a0d5 /libavcodec/mpegvideo.c
parent08bb2567586599d62a282c4cd31567a0807f3d92 (diff)
downloadffmpeg-a871ef0cc936612bdb0e643196be72efcf0c8986.tar.gz
hwaccel: Rename priv_data_size to frame_priv_data_size
This describes more accurately what this field is for.
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index f7f95a79ef..4ec339ed24 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -460,8 +460,8 @@ static int alloc_frame_buffer(MpegEncContext *s, Picture *pic)
if (s->avctx->hwaccel) {
assert(!pic->hwaccel_picture_private);
- if (s->avctx->hwaccel->priv_data_size) {
- pic->hwaccel_priv_buf = av_buffer_allocz(s->avctx->hwaccel->priv_data_size);
+ if (s->avctx->hwaccel->frame_priv_data_size) {
+ pic->hwaccel_priv_buf = av_buffer_allocz(s->avctx->hwaccel->frame_priv_data_size);
if (!pic->hwaccel_priv_buf) {
av_log(s->avctx, AV_LOG_ERROR, "alloc_frame_buffer() failed (hwaccel private data allocation)\n");
return -1;