On Fri, Feb 06, 2015 at 02:44:06AM -0300, James Almer wrote: > On 06/02/15 12:57 AM, Ben Boeckel wrote: > > + if (s->error_recognition & AV_EF_COMPLIANT) > > + level = AV_LOG_ERROR; > > + av_log(s, level, "Spec-compliant FLAC do not support ID3 tags.\n"); > > As i said back when i mentioned this flag to you (and Timothy just > confirmed), if > AV_EF_COMPLIANT is set then it should also return AVERROR_INVALIDDATA and not > just > show a warning/error.
AV_EF_COMPLIANTs "consider all spec non compliancies as errors" was intended as means to detect bitstream errors to guide/trigger error concealment. That is in the sense of where to draw the line between which odities are bitstream errors and should trigger concealment and which are encoder odities and should be decoded as if they are intended by the encoder to be that way. Drawing this line at the wrong place can reduce the effectivity of error concealment of damaged files as well as break decoding of undamaged odd files at the other end. Using the option to abort on non mp3 files with id3 tags would make it difficult to use the option for its originally intended purpose as it would always break decoding affected files hard erroring out with no atempt to somehow recover should probably only happen when AV_EF_EXPLODE is set unless its near certain that continuing is not possible. (this may be the case for CRC errors in critical headers) [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The misfortune of the wise is better than the prosperity of the fool. -- Epicurus
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel