mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-29 04:17:06 +08:00
Update dimensions in AVCodecContext when RV3/4 frame dimensions change
Originally committed as revision 20572 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -1285,8 +1285,8 @@ static int rv34_decode_slice(RV34DecContext *r, int end, const uint8_t* buf, int
|
|||||||
if(s->width != r->si.width || s->height != r->si.height){
|
if(s->width != r->si.width || s->height != r->si.height){
|
||||||
av_log(s->avctx, AV_LOG_DEBUG, "Changing dimensions to %dx%d\n", r->si.width,r->si.height);
|
av_log(s->avctx, AV_LOG_DEBUG, "Changing dimensions to %dx%d\n", r->si.width,r->si.height);
|
||||||
MPV_common_end(s);
|
MPV_common_end(s);
|
||||||
s->width = r->si.width;
|
s->width = s->avctx->width = r->si.width;
|
||||||
s->height = r->si.height;
|
s->height = s->avctx->height = r->si.height;
|
||||||
if(MPV_common_init(s) < 0)
|
if(MPV_common_init(s) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
r->intra_types_stride = s->mb_width*4 + 4;
|
r->intra_types_stride = s->mb_width*4 + 4;
|
||||||
|
Reference in New Issue
Block a user