Commit 2c8aa8d3 authored by kostya's avatar kostya

Call avcodec_set_dimensions() instead of simply setting avctx->width/height

when frame dimensions change in RV3/4.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20595 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ee972872
...@@ -1285,8 +1285,9 @@ static int rv34_decode_slice(RV34DecContext *r, int end, const uint8_t* buf, int ...@@ -1285,8 +1285,9 @@ 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 = s->avctx->width = r->si.width; s->width = r->si.width;
s->height = s->avctx->height = r->si.height; s->height = r->si.height;
avcodec_set_dimensions(s->avctx, s->width, s->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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment