Mercurial > libavcodec.hg
diff mpeg12.c @ 556:762c67fd4078 libavcodec
uvlinesize
export has_b_frames
mb_skip with more than 2 ip buffers
author | michaelni |
---|---|
date | Mon, 15 Jul 2002 14:15:10 +0000 |
parents | 26971b5a271d |
children | 5690779adf16 |
line wrap: on
line diff
--- a/mpeg12.c Mon Jul 15 07:43:22 2002 +0000 +++ b/mpeg12.c Mon Jul 15 14:15:10 2002 +0000 @@ -1505,8 +1505,8 @@ pict->data[1] = picture[1]; pict->data[2] = picture[2]; pict->linesize[0] = s->linesize; - pict->linesize[1] = s->linesize / 2; - pict->linesize[2] = s->linesize / 2; + pict->linesize[1] = s->uvlinesize; + pict->linesize[2] = s->uvlinesize; return 1; } else { return 0; @@ -1546,7 +1546,7 @@ } s->width = width; s->height = height; - s->has_b_frames = 1; + avctx->has_b_frames= s->has_b_frames = 1; s->avctx = avctx; avctx->width = width; avctx->height = height; @@ -1642,8 +1642,8 @@ picture->data[1] = s2->next_picture[1]; picture->data[2] = s2->next_picture[2]; picture->linesize[0] = s2->linesize; - picture->linesize[1] = s2->linesize / 2; - picture->linesize[2] = s2->linesize / 2; + picture->linesize[1] = s2->uvlinesize; + picture->linesize[2] = s2->uvlinesize; *data_size = sizeof(AVPicture); } return 0;