aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-10-21 06:21:07 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-10-21 06:21:07 +0000
commit12a5150bf439ff79c541c3dd7be41cede335c1b8 (patch)
tree4536eab5c2d0da8459e0da091d158f72d8f1f34a
parentac6d020ffa694b4bb6afa400f48a9c98db70d934 (diff)
downloadffmpeg-12a5150bf439ff79c541c3dd7be41cede335c1b8.tar.gz
10l fix h263+ encoder, format will be 8, array size is 8 not 7
Originally committed as revision 25532 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/ituh263enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ituh263enc.c b/libavcodec/ituh263enc.c
index 2537838224..ee0e0de23a 100644
--- a/libavcodec/ituh263enc.c
+++ b/libavcodec/ituh263enc.c
@@ -162,7 +162,7 @@ void h263_encode_picture_header(MpegEncContext * s, int picture_number)
put_bits(&s->pb, 3, 7);
put_bits(&s->pb,3,ufep); /* Update Full Extended PTYPE */
- if (format == 7)
+ if (format == 8)
put_bits(&s->pb,3,6); /* Custom Source Format */
else
put_bits(&s->pb, 3, format);
@@ -192,7 +192,7 @@ void h263_encode_picture_header(MpegEncContext * s, int picture_number)
/* This should be here if PLUSPTYPE */
put_bits(&s->pb, 1, 0); /* Continuous Presence Multipoint mode: off */
- if (format == 7) {
+ if (format == 8) {
/* Custom Picture Format (CPFMT) */
s->aspect_ratio_info= ff_h263_aspect_to_info(s->avctx->sample_aspect_ratio);