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))
|
if (avio_feof(s->pb))
|
||||||
return AVERROR_EOF;
|
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;
|
size = BLOCK_SIZE * par->ch_layout.nb_channels;
|
||||||
|
|
||||||
pkt->pos = avio_tell(s->pb);
|
pkt->pos = avio_tell(s->pb);
|
||||||
|
Reference in New Issue
Block a user