[FFmpeg-cvslog] r25305 - trunk/libavcodec/mpegvideo_enc.c

bcoudurier subversion
Sat Oct 2 03:26:01 CEST 2010


Author: bcoudurier
Date: Sat Oct  2 03:26:00 2010
New Revision: 25305

Log:
10l fix h263 encoder resolution test, array size is 8 not 7

Modified:
   trunk/libavcodec/mpegvideo_enc.c

Modified: trunk/libavcodec/mpegvideo_enc.c
==============================================================================
--- trunk/libavcodec/mpegvideo_enc.c	Fri Oct  1 23:56:09 2010	(r25304)
+++ trunk/libavcodec/mpegvideo_enc.c	Sat Oct  2 03:26:00 2010	(r25305)
@@ -570,7 +570,7 @@ av_cold int MPV_encode_init(AVCodecConte
         break;
     case CODEC_ID_H263:
         if (!CONFIG_H263_ENCODER)  return -1;
-        if (ff_match_2uint16(h263_format, FF_ARRAY_ELEMS(h263_format), s->width, s->height) == 7) {
+        if (ff_match_2uint16(h263_format, FF_ARRAY_ELEMS(h263_format), s->width, s->height) == 8) {
             av_log(avctx, AV_LOG_INFO, "The specified picture size of %dx%d is not valid for the H.263 codec.\nValid sizes are 128x96, 176x144, 352x288, 704x576, and 1408x1152. Try H.263+.\n", s->width, s->height);
             return -1;
         }



More information about the ffmpeg-cvslog mailing list