# HG changeset patch # User michael # Date 1084377644 0 # Node ID a14873a809a8285908e1af445a5be394546972fb # Parent 93edc9073ffc8fb575087d4f2e6d62db9a8b42ba automatic pixel format selection diff -r 93edc9073ffc -r a14873a809a8 avcodec.h --- a/avcodec.h Wed May 12 02:50:48 2004 +0000 +++ b/avcodec.h Wed May 12 16:00:44 2004 +0000 @@ -1658,6 +1658,7 @@ struct AVCodec *next; void (*flush)(AVCodecContext *); const AVRational *supported_framerates; ///array of supported framerates, or NULL if any, array is terminated by {0,0} + const enum PixelFormat *pix_fmts; ///array of supported pixel formats, or NULL if unknown, array is terminanted by -1 } AVCodec; /** diff -r 93edc9073ffc -r a14873a809a8 svq1.c --- a/svq1.c Wed May 12 02:50:48 2004 +0000 +++ b/svq1.c Wed May 12 16:00:44 2004 +0000 @@ -1933,6 +1933,7 @@ svq1_decode_frame, CODEC_CAP_DR1, .flush= ff_mpeg_flush, + .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV410P, -1}, }; #ifdef CONFIG_ENCODERS @@ -1945,6 +1946,7 @@ svq1_encode_init, svq1_encode_frame, svq1_encode_end, + .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV410P, -1}, }; #endif //CONFIG_ENCODERS