Revision 91819763 libavformat/matroskaenc.c

View differences:

libavformat/matroskaenc.c
1140 1140
    }
1141 1141

  
1142 1142
    if (pb->seekable) {
1143
        cuespos = mkv_write_cues(pb, mkv->cues, s->nb_streams);
1143
        if (mkv->cues->num_entries) {
1144
            cuespos = mkv_write_cues(pb, mkv->cues, s->nb_streams);
1145

  
1146
            ret = mkv_add_seekhead_entry(mkv->main_seekhead, MATROSKA_ID_CUES, cuespos);
1147
            if (ret < 0) return ret;
1148
        }
1144 1149

  
1145
        ret = mkv_add_seekhead_entry(mkv->main_seekhead, MATROSKA_ID_CUES    , cuespos);
1146
        if (ret < 0) return ret;
1147 1150
        mkv_write_seekhead(pb, mkv->main_seekhead);
1148 1151

  
1149 1152
        // update the duration

Also available in: Unified diff