diff options
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/lavfutils.c | 2 | ||||
-rw-r--r-- | libavfilter/libmpcodecs/vf_uspp.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c index b7a103b66c..58d98cfdb6 100644 --- a/libavfilter/lavfutils.c +++ b/libavfilter/lavfutils.c @@ -57,7 +57,7 @@ int ff_load_image(uint8_t *data[4], int linesize[4], goto end; } - if (!(frame = avcodec_alloc_frame()) ) { + if (!(frame = av_frame_alloc()) ) { av_log(log_ctx, AV_LOG_ERROR, "Failed to alloc frame\n"); ret = AVERROR(ENOMEM); goto end; diff --git a/libavfilter/libmpcodecs/vf_uspp.c b/libavfilter/libmpcodecs/vf_uspp.c index 54cc0f9e11..1fb252386c 100644 --- a/libavfilter/libmpcodecs/vf_uspp.c +++ b/libavfilter/libmpcodecs/vf_uspp.c @@ -245,8 +245,8 @@ static int config(struct vf_instance *vf, av_dict_free(&opts); assert(avctx_enc->codec); } - vf->priv->frame= avcodec_alloc_frame(); - vf->priv->frame_dec= avcodec_alloc_frame(); + vf->priv->frame= av_frame_alloc(); + vf->priv->frame_dec= av_frame_alloc(); vf->priv->outbuf_size= (width + BLOCK)*(height + BLOCK)*10; vf->priv->outbuf= malloc(vf->priv->outbuf_size); |