diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-07-16 11:45:14 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-07-16 11:45:14 +0000 |
commit | fe072fb4ee7375d9dd4c90c54cff22b12a886e88 (patch) | |
tree | e0191ce09e04b074f6cb5591ceb63e8ab8c4598b /libavcodec/mpegvideo.c | |
parent | bc6d7776d854c14e944606641f05eb4acdcdd428 (diff) | |
download | ffmpeg-fe072fb4ee7375d9dd4c90c54cff22b12a886e88.tar.gz |
exporting mbskip_table after it has been allocated
Originally committed as revision 768 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 52f045bb6f..38de3d831e 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -619,6 +619,7 @@ void MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) s->mb_skiped = 0; s->decoding_error=0; + avctx->mbskip_table= s->mbskip_table; if(avctx->flags&CODEC_FLAG_DR1){ int i; @@ -628,6 +629,7 @@ void MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) s->uvlinesize= avctx->dr_uvstride; s->ip_buffer_count= avctx->dr_ip_buffer_count; } + avctx->dr_ip_buffer_count= s->ip_buffer_count; if (s->pict_type == B_TYPE) { for(i=0;i<3;i++) { @@ -1443,9 +1445,9 @@ void MPV_decode_mb(MpegEncContext *s, DCTELEM block[6][64]) } } - dest_y = s->current_picture[0] + (mb_y * 16 * s->linesize) + mb_x * 16; - dest_cb = s->current_picture[1] + (mb_y * 8 * (s->uvlinesize)) + mb_x * 8; - dest_cr = s->current_picture[2] + (mb_y * 8 * (s->uvlinesize)) + mb_x * 8; + dest_y = s->current_picture [0] + (mb_y * 16* s->linesize ) + mb_x * 16; + dest_cb = s->current_picture[1] + (mb_y * 8 * s->uvlinesize) + mb_x * 8; + dest_cr = s->current_picture[2] + (mb_y * 8 * s->uvlinesize) + mb_x * 8; if (s->interlaced_dct) { dct_linesize = s->linesize * 2; |