Revision 4647c0ec libavformat/matroska.c

View differences:

libavformat/matroska.c
110 110

  
111 111
/* IDs in the trackaudio master */
112 112
#define MATROSKA_ID_AUDIOSAMPLINGFREQ 0xB5
113
#define MATROSKA_ID_AUDIOOUTSAMPLINGFREQ 0x78B5
114

  
113 115
#define MATROSKA_ID_AUDIOBITDEPTH 0x6264
114 116
#define MATROSKA_ID_AUDIOCHANNELS 0x9F
115 117

  
......
273 275

  
274 276
    int channels,
275 277
        bitdepth,
278
        internal_samplerate,
276 279
        samplerate;
277 280
    //..
278 281
} MatroskaAudioTrack;
......
1433 1436
                            if ((res = ebml_read_float(matroska, &id,
1434 1437
                                                       &num)) < 0)
1435 1438
                                break;
1439
                            audiotrack->internal_samplerate =
1440
                            audiotrack->samplerate = num;
1441
                            break;
1442
                        }
1443

  
1444
                        case MATROSKA_ID_AUDIOOUTSAMPLINGFREQ: {
1445
                            double num;
1446
                            if ((res = ebml_read_float(matroska, &id,
1447
                                                       &num)) < 0)
1448
                                break;
1436 1449
                            audiotrack->samplerate = num;
1437 1450
                            break;
1438 1451
                        }

Also available in: Unified diff