]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mpegvideo.c
Fix compilation error around struct visibility when VDPAU disabled.
[ffmpeg] / libavcodec / mpegvideo.c
index 873034308850ed927073da2e008c7772d4c85bb1..e1d1efc50eb59be609987ea2a1c577f81b4c06bc 100644 (file)
@@ -478,8 +478,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;