mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-23 19:49:56 +00:00
h26[13]dec: stop using deprecated avcodec_set_dimensions
This commit is contained in:
parent
8255535c5f
commit
3b08631727
@ -29,6 +29,7 @@
|
||||
#include "mpegvideo.h"
|
||||
#include "h263.h"
|
||||
#include "h261.h"
|
||||
#include "internal.h"
|
||||
|
||||
#define H261_MBA_VLC_BITS 9
|
||||
#define H261_MTYPE_VLC_BITS 6
|
||||
@ -607,7 +608,9 @@ retry:
|
||||
s->parse_context = pc;
|
||||
}
|
||||
if (!s->context_initialized) {
|
||||
avcodec_set_dimensions(avctx, s->width, s->height);
|
||||
ret = ff_set_dimensions(avctx, s->width, s->height);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
goto retry;
|
||||
}
|
||||
|
@ -600,7 +600,9 @@ int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
|
||||
/* H.263 could change picture size any time */
|
||||
s->context_reinit = 0;
|
||||
|
||||
avcodec_set_dimensions(avctx, s->width, s->height);
|
||||
ret = ff_set_dimensions(avctx, s->width, s->height);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if ((ret = ff_MPV_common_frame_size_change(s)))
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user