Revision 54eb4ae0 libavformat/tmv.c

View differences:

libavformat/tmv.c
77 77
        return AVERROR(ENOMEM);
78 78

  
79 79
    ast->codec->sample_rate = get_le16(pb);
80
    if (!ast->codec->sample_rate) {
81
        av_log(s, AV_LOG_ERROR, "invalid sample rate\n");
82
        return -1;
83
    }
84

  
80 85
    tmv->audio_chunk_size   = get_le16(pb);
81 86
    if (!tmv->audio_chunk_size) {
82 87
        av_log(s, AV_LOG_ERROR, "invalid audio chunk size\n");

Also available in: Unified diff