[FFmpeg-cvslog] Revert "h264: Properly set coded_{width, height} when parsing H.264."

Luca Barbato git at videolan.org
Mon Aug 29 22:35:00 CEST 2011


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Sun Aug 21 18:27:44 2011 +0200| [22141917a987e22685ee20440148e25724451f50] | committer: Luca Barbato

Revert "h264: Properly set coded_{width, height} when parsing H.264."

This reverts commit b47904d158709bdec1a9d40e83d1abadf50081dc.

coded_{width, height} overwrites width and height in avcodec_open and
it currently just report the non-lowres size.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=22141917a987e22685ee20440148e25724451f50
---

 libavcodec/h264.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 5116ca2..d047448 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2574,9 +2574,6 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
         s->avctx->sample_aspect_ratio= h->sps.sar;
         av_assert0(s->avctx->sample_aspect_ratio.den);
 
-        h->s.avctx->coded_width = 16*s->mb_width;
-        h->s.avctx->coded_height = 16*s->mb_height;
-
         if(h->sps.video_signal_type_present_flag){
             s->avctx->color_range = h->sps.full_range ? AVCOL_RANGE_JPEG : AVCOL_RANGE_MPEG;
             if(h->sps.colour_description_present_flag){



More information about the ffmpeg-cvslog mailing list