]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/svq1enc.c
vc1dec: prevent v_edge_pos from becoming negative.
[ffmpeg] / libavcodec / svq1enc.c
index 08777957cf6f57d1c627f302476ae1b295e6a129..216fa3b062fa24523377fe6eb8bc067a286c383e 100644 (file)
@@ -547,8 +547,8 @@ static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     }
 
     if (!s->current_picture.data[0]) {
-        avctx->get_buffer(avctx, &s->current_picture);
-        avctx->get_buffer(avctx, &s->last_picture);
+        ff_get_buffer(avctx, &s->current_picture);
+        ff_get_buffer(avctx, &s->last_picture);
         s->scratchbuf = av_malloc(s->current_picture.linesize[0] * 16 * 2);
     }