Skip to content
Snippets Groups Projects
Commit 4e31176e authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/riffdec: remove special case for bitrate > 32bit


AVCodecContext.bitrate is 64bit

Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 32bf6550
No related branches found
No related tags found
No related merge requests found
...@@ -168,21 +168,7 @@ int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, ...@@ -168,21 +168,7 @@ int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb,
codec->channels += codec->extradata[8 + i * 20 + 17]; codec->channels += codec->extradata[8 + i * 20 + 17];
} }
if (bitrate > INT_MAX) { codec->bit_rate = bitrate;
if (s->error_recognition & AV_EF_EXPLODE) {
av_log(s, AV_LOG_ERROR,
"The bitrate %"PRIu64" is too large.\n",
bitrate);
return AVERROR_INVALIDDATA;
} else {
av_log(s, AV_LOG_WARNING,
"The bitrate %"PRIu64" is too large, resetting to 0.",
bitrate);
codec->bit_rate = 0;
}
} else {
codec->bit_rate = bitrate;
}
if (codec->sample_rate <= 0) { if (codec->sample_rate <= 0) {
av_log(s, AV_LOG_ERROR, av_log(s, AV_LOG_ERROR,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment