diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-06-25 01:47:40 +0300 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-06-25 01:47:40 +0300 |
commit | b7215abb3d406bd836e51855b0289d51936dfd74 (patch) | |
tree | 6339195d126c8d627a318e5c9b5be20869e91d01 /demuxer | |
parent | 3b66f8229f10db370a1476a6cf5c023e5dda4ada (diff) |
Remove frame_size check for mpegaudio
This was an ugly kludge and should probably be checked differently in other places.
Diffstat (limited to 'demuxer')
-rw-r--r-- | demuxer/Demuxers/LAVFStreamInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demuxer/Demuxers/LAVFStreamInfo.cpp b/demuxer/Demuxers/LAVFStreamInfo.cpp index 1f29f3c0..bae7b18c 100644 --- a/demuxer/Demuxers/LAVFStreamInfo.cpp +++ b/demuxer/Demuxers/LAVFStreamInfo.cpp @@ -70,7 +70,7 @@ STDMETHODIMP CLAVFStreamInfo::CreateAudioMediaType(AVFormatContext *avctx, AVStr avstream->codecpar->codec_tag = av_codec_get_tag(mp_wav_taglists, avstream->codecpar->codec_id); } - if (avstream->codecpar->channels == 0 || avstream->codecpar->sample_rate == 0 || (is_mpeg_audio(avstream->codecpar->codec_id) && avstream->codecpar->frame_size == 0)) { + if (avstream->codecpar->channels == 0 || avstream->codecpar->sample_rate == 0) { if (avstream->codecpar->codec_id == AV_CODEC_ID_AAC && avstream->codecpar->bit_rate) { if (!avstream->codecpar->channels) avstream->codecpar->channels = 2; if (!avstream->codecpar->sample_rate) avstream->codecpar->sample_rate = 48000; |