You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
avformat/adxdec: remove unneeded check for channels inside read_packet()
This commit is contained in:
@ -57,11 +57,6 @@ static int adx_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
if (avio_feof(s->pb))
|
||||
return AVERROR_EOF;
|
||||
|
||||
if (par->ch_layout.nb_channels <= 0) {
|
||||
av_log(s, AV_LOG_ERROR, "invalid number of channels %d\n", par->ch_layout.nb_channels);
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
size = BLOCK_SIZE * par->ch_layout.nb_channels;
|
||||
|
||||
pkt->pos = avio_tell(s->pb);
|
||||
|
Reference in New Issue
Block a user