Revision 45290fcd

View differences:

ffmpeg.c
1863 1863
        out_ch->end       = FFMIN(rt, in_ch->end   - ts_off);
1864 1864

  
1865 1865
        if (metadata_chapters_autocopy)
1866
        while ((t = av_metadata_get(in_ch->metadata, "", t, AV_METADATA_IGNORE_SUFFIX)))
1867
            av_metadata_set2(&out_ch->metadata, t->key, t->value, 0);
1866
            while ((t = av_metadata_get(in_ch->metadata, "", t, AV_METADATA_IGNORE_SUFFIX)))
1867
                av_metadata_set2(&out_ch->metadata, t->key, t->value, 0);
1868 1868

  
1869 1869
        os->nb_chapters++;
1870 1870
        os->chapters = av_realloc(os->chapters, sizeof(AVChapter)*os->nb_chapters);
......
2093 2093
        icodec = ist->st->codec;
2094 2094

  
2095 2095
        if (metadata_streams_autocopy)
2096
        while ((t = av_metadata_get(ist->st->metadata, "", t, AV_METADATA_IGNORE_SUFFIX))) {
2097
            av_metadata_set2(&ost->st->metadata, t->key, t->value, AV_METADATA_DONT_OVERWRITE);
2098
        }
2096
            while ((t = av_metadata_get(ist->st->metadata, "", t, AV_METADATA_IGNORE_SUFFIX))) {
2097
                av_metadata_set2(&ost->st->metadata, t->key, t->value, AV_METADATA_DONT_OVERWRITE);
2098
            }
2099 2099

  
2100 2100
        ost->st->disposition = ist->st->disposition;
2101 2101
        codec->bits_per_raw_sample= icodec->bits_per_raw_sample;

Also available in: Unified diff