Revision c46eeae2 libavcodec/mpegvideo_enc.c
libavcodec/mpegvideo_enc.c | ||
---|---|---|
31 | 31 |
#include "dsputil.h" |
32 | 32 |
#include "mpegvideo.h" |
33 | 33 |
#include "mpegvideo_common.h" |
34 |
#include "h263.h" |
|
34 | 35 |
#include "mjpegenc.h" |
35 | 36 |
#include "msmpeg4.h" |
36 | 37 |
#include "faandct.h" |
... | ... | |
570 | 571 |
break; |
571 | 572 |
case CODEC_ID_H263: |
572 | 573 |
if (!CONFIG_H263_ENCODER) return -1; |
573 |
if (h263_get_picture_format(s->width, s->height) == 7) {
|
|
574 |
if (ff_match_2uint16(h263_format, FF_ARRAY_ELEMS(h263_format), s->width, s->height) == 7) {
|
|
574 | 575 |
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); |
575 | 576 |
return -1; |
576 | 577 |
} |
Also available in: Unified diff