diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index e6d5227c2239bc7ad2e43bde4f008b2738fa6ea0..f20cafc5520c3a1d4c4799cfbc7aedbf3532c303 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -892,8 +892,6 @@ static int get_buffer_internal(AVCodecContext *avctx, AVFrame *frame, int flags)
     ret = ff_decode_frame_props(avctx, frame);
     if (ret < 0)
         return ret;
-    if ((ret = ff_init_buffer_info(avctx, frame)) < 0)
-        return ret;
 
     if (hwaccel) {
         if (hwaccel->alloc_frame) {