Revision 6d680e1b libavformat/mov.c

View differences:

libavformat/mov.c
1443 1443
        av_set_pts_info(st, 64, sc->time_rate, sc->time_scale);
1444 1444

  
1445 1445
        if (st->codec->codec_type == CODEC_TYPE_AUDIO && sc->stts_count == 1)
1446
            st->codec->frame_size = sc->stts_data[0].duration;
1446
            st->codec->frame_size = av_rescale(sc->time_rate, st->codec->sample_rate, sc->time_scale);
1447 1447

  
1448 1448
        if(st->duration != AV_NOPTS_VALUE){
1449 1449
            assert(st->duration % sc->time_rate == 0);

Also available in: Unified diff