Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-05-01 00:58:27 +0400
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-05-02 01:20:52 +0400
commit7effbee66cf457c62f795d9b9ed3a1110b364b89 (patch)
treea406f659aff1b694e66774acb77ec856024d81d8 /libavformat/sol.c
parent75f847aa6b1bc88733e59d680809f614977b4c07 (diff)
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/sol.c')
-rw-r--r--libavformat/sol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/sol.c b/libavformat/sol.c
index 698502e036..b2ecd82c46 100644
--- a/libavformat/sol.c
+++ b/libavformat/sol.c
@@ -133,6 +133,7 @@ static int sol_read_packet(AVFormatContext *s,
ret= av_get_packet(s->pb, pkt, MAX_SIZE);
if (ret < 0)
return ret;
+ pkt->flags &= ~AV_PKT_FLAG_CORRUPT;
pkt->stream_index = 0;
/* note: we need to modify the packet size here to handle the last