Revision 3f78a3a9 libavformat/mov.c

View differences:

libavformat/mov.c
922 922
        st->codec->sample_rate= 16000;
923 923
        st->codec->channels= 1; /* really needed */
924 924
        break;
925
    case CODEC_ID_QCELP:
926
        st->codec->frame_size = sc->samples_per_frame;
927
        st->need_parsing= AVSTREAM_PARSE_FULL;
925 928
    case CODEC_ID_AMR_NB:
926 929
        st->codec->sample_rate= 8000;
927 930
        st->codec->channels= 1; /* really needed */
......
1252 1255
        sc->time_scale= c->time_scale;
1253 1256
    av_set_pts_info(st, 64, sc->time_rate, sc->time_scale);
1254 1257

  
1255
    if (st->codec->codec_type == CODEC_TYPE_AUDIO && sc->stts_count == 1)
1258
    if (st->codec->codec_type == CODEC_TYPE_AUDIO &&
1259
        !st->codec->frame_size && sc->stts_count == 1)
1256 1260
        st->codec->frame_size = av_rescale(sc->time_rate, st->codec->sample_rate, sc->time_scale);
1257 1261

  
1258 1262
    if(st->duration != AV_NOPTS_VALUE){

Also available in: Unified diff