From 7effbee66cf457c62f795d9b9ed3a1110b364b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Mon, 30 Apr 2012 22:58:27 +0200 Subject: Mark truncated packets as corrupt in av_get_packet. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Manually remove that flag again for formats that read an arbitrary amount of data and thus truncation is not an error. Signed-off-by: Reimar Döffinger --- libavformat/pcmdec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/pcmdec.c') diff --git a/libavformat/pcmdec.c b/libavformat/pcmdec.c index eacac2f..94f6b4a 100644 --- a/libavformat/pcmdec.c +++ b/libavformat/pcmdec.c @@ -36,6 +36,7 @@ static int raw_read_packet(AVFormatContext *s, AVPacket *pkt) ret= av_get_packet(s->pb, pkt, size); + pkt->flags &= ~AV_PKT_FLAG_CORRUPT; pkt->stream_index = 0; if (ret < 0) return ret; -- cgit v1.1