1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

snow: fix build after 594d4d5df3

This commit is contained in:
Anton Khirnov 2012-12-05 06:34:02 +01:00
parent 92dad6687f
commit 380232fac3
2 changed files with 5 additions and 3 deletions

View File

@ -24,6 +24,7 @@
#include "avcodec.h"
#include "dsputil.h"
#include "dwt.h"
#include "internal.h"
#include "snow.h"
#include "snowdata.h"
@ -458,7 +459,7 @@ av_cold int ff_snow_common_init(AVCodecContext *avctx){
for(j=0; j<MAX_REF_FRAMES; j++)
ff_scale_mv_ref[i][j] = 256*(i+1)/(j+1);
if ((ret = s->ff_get_buffer(s->avctx, &s->mconly_picture)) < 0) {
if ((ret = ff_get_buffer(s->avctx, &s->mconly_picture)) < 0) {
av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return ret;
}
@ -623,7 +624,7 @@ int ff_snow_frame_start(SnowContext *s){
}
s->current_picture.reference= 1;
if(s->ff_get_buffer(s->avctx, &s->current_picture) < 0){
if(ff_get_buffer(s->avctx, &s->current_picture) < 0){
av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return -1;
}

View File

@ -23,6 +23,7 @@
#include "libavutil/opt.h"
#include "avcodec.h"
#include "dsputil.h"
#include "internal.h"
#include "dwt.h"
#include "snow.h"
@ -239,7 +240,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
ff_set_cmp(&s->dsp, s->dsp.me_cmp, s->avctx->me_cmp);
ff_set_cmp(&s->dsp, s->dsp.me_sub_cmp, s->avctx->me_sub_cmp);
s->ff_get_buffer(s->avctx, &s->input_picture);
ff_get_buffer(s->avctx, &s->input_picture);
if(s->avctx->me_method == ME_ITER){
int i;