]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/v210enc.c
lavc: use buf[0] instead of data[0] as the indicator of an allocated frame
[ffmpeg] / libavcodec / v210enc.c
index 7efbb9607cf29007a3209073adefe73eaaf99d15..ef0d6ab2a47adb1fe21fb77942bc29ab74c584b3 100644 (file)
@@ -36,7 +36,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
         av_log(avctx, AV_LOG_WARNING, "bits per raw sample: %d != 10-bit\n",
                avctx->bits_per_raw_sample);
 
-    avctx->coded_frame = avcodec_alloc_frame();
+    avctx->coded_frame = av_frame_alloc();
     if (!avctx->coded_frame)
         return AVERROR(ENOMEM);