avconv: fix copying per-stream metadata.
authorAnton Khirnov <anton@khirnov.net>
Sat, 24 Nov 2012 06:55:42 +0000 (07:55 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sun, 25 Nov 2012 15:35:20 +0000 (16:35 +0100)
It is handled separately from other types because it uses stream
specifiers and currently that triggers an assert in SET_DICT.

CC:libav-stable@libav.org

avconv_opt.c

index 0354454..0ea2f45 100644 (file)
@@ -351,6 +351,8 @@ static int copy_metadata(char *outspec, char *inspec, AVFormatContext *oc, AVFor
             METADATA_CHECK_INDEX(index, context->nb_programs, "program")\
             meta = &context->programs[index]->metadata;\
             break;\
+        case 's':\
+            break; /* handled separately below */ \
         default: av_assert0(0);\
         }\