avformat: implement query_codec for the image2 muxer.

Allows avformat_query_codec to be used to check for valid image2 encoders.
Reuses the existing ff_guess_image2_codec ID table.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
tab
2015-09-06 11:07:20 -04:00
committed by Michael Niedermayer
parent b480f0e37a
commit fb135139fd
3 changed files with 24 additions and 7 deletions
+7
View File
@@ -62,6 +62,13 @@ typedef struct VideoDemuxData {
int ts_from_file;
} VideoDemuxData;
typedef struct IdStrMap {
enum AVCodecID id;
const char *str;
} IdStrMap;
extern const IdStrMap ff_img_tags[];
extern const AVOption ff_img_options[];
int ff_img_read_header(AVFormatContext *s1);