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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user