# HG changeset patch # User diego # Date 1164032012 0 # Node ID 58dba449406c97c363d4be3ac5f12a01a61bc774 # Parent 4f82f2aaff7fe0543c440ba1f863ebd2df126a6a Fix linking with H.261 support disabled. patch by Tom Harper, d.thomas.harper gmail com diff -r 4f82f2aaff7f -r 58dba449406c mpegvideo.c --- a/mpegvideo.c Mon Nov 20 11:53:02 2006 +0000 +++ b/mpegvideo.c Mon Nov 20 14:13:32 2006 +0000 @@ -1207,6 +1207,7 @@ avctx->delay=0; s->low_delay=1; break; +#ifdef CONFIG_H261_ENCODER case CODEC_ID_H261: if (ff_h261_get_picture_format(s->width, s->height) < 0) { av_log(avctx, AV_LOG_ERROR, "The specified picture size of %dx%d is not valid for the H.261 codec.\nValid sizes are 176x144, 352x288\n", s->width, s->height); @@ -1216,6 +1217,7 @@ avctx->delay=0; s->low_delay=1; break; +#endif case CODEC_ID_H263: if (h263_get_picture_format(s->width, s->height) == 7) { 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);