diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-04-30 22:58:27 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-05-01 23:20:52 +0200 |
commit | 7effbee66cf457c62f795d9b9ed3a1110b364b89 (patch) | |
tree | a406f659aff1b694e66774acb77ec856024d81d8 /libavformat/mp3dec.c | |
parent | 75f847aa6b1bc88733e59d680809f614977b4c07 (diff) | |
download | ffmpeg-7effbee66cf457c62f795d9b9ed3a1110b364b89.tar.gz |
Mark truncated packets as corrupt in av_get_packet.
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 <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavformat/mp3dec.c')
-rw-r--r-- | libavformat/mp3dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c index 31d64b2921..edfee164b4 100644 --- a/libavformat/mp3dec.c +++ b/libavformat/mp3dec.c @@ -175,6 +175,7 @@ static int mp3_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) { if(ret<0) |