]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/roqvideoenc.c
lavc: add a wrapper for AVCodecContext.get_buffer().
[ffmpeg] / libavcodec / roqvideoenc.c
index a5e0720889f8b93ddaf739084687d24bedaa2ec9..192f1eb6a39c3749458b0c873b83c150c3f3762e 100644 (file)
@@ -1033,8 +1033,8 @@ static int roq_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     if (enc->first_frame) {
         /* Alloc memory for the reconstruction data (we must know the stride
          for that) */
-        if (avctx->get_buffer(avctx, enc->current_frame) ||
-            avctx->get_buffer(avctx, enc->last_frame)) {
+        if (ff_get_buffer(avctx, enc->current_frame) ||
+            ff_get_buffer(avctx, enc->last_frame)) {
             av_log(avctx, AV_LOG_ERROR, "  RoQ: get_buffer() failed\n");
             return -1;
         }