Revision 91819763

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
tests/ref/acodec/pcm
22 22
1058444 ./tests/data/acodec/pcm_s16le.wav
23 23
95e54b261530a1bcf6de6fe3b21dc5f6 *./tests/data/pcm.acodec.out.wav
24 24
stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
25
352a6bcf51d0f3ca4bf27c423a3d4d14 *./tests/data/acodec/pcm_s16be.mkv
26
 1060650 ./tests/data/acodec/pcm_s16be.mkv
25
af717ca95eaca310772eb1238c745d1b *./tests/data/acodec/pcm_s16be.mkv
26
1060638 ./tests/data/acodec/pcm_s16be.mkv
27 27
95e54b261530a1bcf6de6fe3b21dc5f6 *./tests/data/pcm.acodec.out.wav
28 28
stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
29
2c089d83b2699c02c9358415e00a9707 *./tests/data/acodec/pcm_s16le.mkv
30
 1060650 ./tests/data/acodec/pcm_s16le.mkv
29
c4f51bf32fad2f7af8ea5beedb56168b *./tests/data/acodec/pcm_s16le.mkv
30
1060638 ./tests/data/acodec/pcm_s16le.mkv
31 31
95e54b261530a1bcf6de6fe3b21dc5f6 *./tests/data/pcm.acodec.out.wav
32 32
stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
33 33
07ffe7ffb78f3648b6524debdde5aec1 *./tests/data/acodec/pcm_s24be.mov

Also available in: Unified diff