[FFmpeg-devel] [RFC] ac3dec error handling

Reimar Döffinger Reimar.Doeffinger
Sun Jan 24 22:37:39 CET 2010


On Sun, Jan 24, 2010 at 02:05:47PM +0100, Reimar D?ffinger wrote:
> currently ac3dec will handle decode errors by just re-copying the previous
> block data and not giving any indication to the application at all.
> I think that's no good and below is a proposal that includes two different
> (combinable) ways of doing it
> 1) return only the data that was decoded without issue
> 2) return -1 if we hit an error
> Seems to fix some annoying blips I can hear after seeking in DVDs with MPlayer
> (I admit that this is probably an issue in MPlayer, consider it just
> an easy way of creating broken AC3 frames).

Since I found the real issue please forget this patch.
However a version that allows changing this behaviour via
AVCodecContext.error_concealment or so I think would be welcome.



More information about the ffmpeg-devel mailing list