diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-09-27 10:37:22 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-09-27 15:26:36 +0200 |
commit | 3ccd15803bc1dd06cf2646ade92891dada5417ea (patch) | |
tree | 494a2b49b64cb3eff661b7aeaba17b40bac88ef6 /cmdutils.c | |
parent | c7a63a521b5c165405e3577751d649529d09f0c5 (diff) | |
download | ffmpeg-3ccd15803bc1dd06cf2646ade92891dada5417ea.tar.gz |
avconv: add support for copying attachments.
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c index 1e873e66a1..2c37880d74 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -858,7 +858,7 @@ int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec) { if (*spec <= '9' && *spec >= '0') /* opt:index */ return strtol(spec, NULL, 0) == st->index; - else if (*spec == 'v' || *spec == 'a' || *spec == 's' || *spec == 'd') { /* opt:[vasd] */ + else if (*spec == 'v' || *spec == 'a' || *spec == 's' || *spec == 'd' || *spec == 't') { /* opt:[vasdt] */ enum AVMediaType type; switch (*spec++) { @@ -866,6 +866,7 @@ int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec) case 'a': type = AVMEDIA_TYPE_AUDIO; break; case 's': type = AVMEDIA_TYPE_SUBTITLE; break; case 'd': type = AVMEDIA_TYPE_DATA; break; + case 't': type = AVMEDIA_TYPE_ATTACHMENT; break; } if (type != st->codec->codec_type) return 0; |