Mercurial > libavcodec.hg
diff h263dec.c @ 10788:0c8f9288b5e4 libavcodec
Split flv decoding out.
author | michael |
---|---|
date | Thu, 07 Jan 2010 05:36:45 +0000 |
parents | 1d22da3122b9 |
children | 48adb5a1b47b |
line wrap: on
line diff
--- a/h263dec.c Thu Jan 07 04:42:39 2010 +0000 +++ b/h263dec.c Thu Jan 07 05:36:45 2010 +0000 @@ -33,6 +33,7 @@ #include "mpeg4video_parser.h" #include "msmpeg4.h" #include "vdpau_internal.h" +#include "flv.h" //#define DEBUG //#define PRINT_FRAME_TIME @@ -414,8 +415,8 @@ ret = ff_mpeg4_decode_picture_header(s, &s->gb); } else if (s->codec_id == CODEC_ID_H263I) { ret = intel_h263_decode_picture_header(s); - } else if (s->h263_flv) { - ret = flv_h263_decode_picture_header(s); + } else if (CONFIG_FLV_DECODER && s->h263_flv) { + ret = ff_flv_decode_picture_header(s); } else { ret = h263_decode_picture_header(s); } @@ -830,20 +831,6 @@ .pix_fmts= ff_pixfmt_list_420, }; -AVCodec flv_decoder = { - "flv", - CODEC_TYPE_VIDEO, - CODEC_ID_FLV1, - sizeof(MpegEncContext), - ff_h263_decode_init, - NULL, - ff_h263_decode_end, - ff_h263_decode_frame, - CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, - .long_name= NULL_IF_CONFIG_SMALL("Flash Video (FLV) / Sorenson Spark / Sorenson H.263"), - .pix_fmts= ff_pixfmt_list_420, -}; - #if CONFIG_MPEG4_VDPAU_DECODER AVCodec mpeg4_vdpau_decoder = { "mpeg4_vdpau",