summaryrefslogtreecommitdiff
path: root/libavcodec/rv10.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-05-23 22:59:35 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-05-23 22:59:35 +0000
commit216fb60dff58314dae5add677d6a70d57b596aae (patch)
tree28f8a1d96bf725e42f35bc832547e8e661fb8920 /libavcodec/rv10.c
parentfdb699de62a7fdeb14a1a53a7813a3e8dcad12c1 (diff)
Fix lowres with rv20.
Fixes issue1102. Originally committed as revision 18920 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv10.c')
-rw-r--r--libavcodec/rv10.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c
index a73917a0b9..54f73c5d13 100644
--- a/libavcodec/rv10.c
+++ b/libavcodec/rv10.c
@@ -510,6 +510,7 @@ av_log(s->avctx, AV_LOG_DEBUG, "\n");*/
// s->obmc=1;
// s->umvplus=1;
s->modified_quant=1;
+ if(!s->avctx->lowres)
s->loop_filter=1;
if(s->avctx->debug & FF_DEBUG_PICT_INFO){
@@ -538,8 +539,8 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx)
s->out_format = FMT_H263;
s->codec_id= avctx->codec_id;
- s->width = avctx->width;
- s->height = avctx->height;
+ s->width = avctx->coded_width;
+ s->height = avctx->coded_height;
s->h263_long_vectors= ((uint8_t*)avctx->extradata)[3] & 1;
avctx->sub_id= AV_RB32((uint8_t*)avctx->extradata + 4);