1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

do not fail if correct is not recognized

Originally committed as revision 13170 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2008-05-15 22:37:31 +00:00
parent 24c1d3b54d
commit 0a1bd250d1

View File

@ -149,9 +149,6 @@ static unsigned int get_aiff_header(ByteIOContext *pb, AVCodecContext *codec,
codec->bits_per_sample = av_get_bits_per_sample(codec->codec_id); codec->bits_per_sample = av_get_bits_per_sample(codec->codec_id);
} }
if (!codec->codec_id)
return AVERROR_INVALIDDATA;
/* Block align needs to be computed in all cases, as the definition /* Block align needs to be computed in all cases, as the definition
* is specific to applications -> here we use the WAVE format definition */ * is specific to applications -> here we use the WAVE format definition */
if (!codec->block_align) if (!codec->block_align)