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:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-12-10 04:41:43 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2019-12-11 18:24:16 +0300
commit91f775e0c533374f1c94e1a094d19d269b70e1e7 (patch)
tree12dada019e5ddda3d8439bca2f328c98af54dac8 /libavformat/apc.c
parent78676ee8f81269937afdcaa2d9bb7bf77f53c1ba (diff)
avformat/apc: Remove unnecessary resetting of flags
The packet a demuxer receives is freshly initialized, hence it is unnecessary to reset any flags on them (as none are set), yet apc did this. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/apc.c')
-rw-r--r--libavformat/apc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/apc.c b/libavformat/apc.c
index 835d1b0f6e..571726affb 100644
--- a/libavformat/apc.c
+++ b/libavformat/apc.c
@@ -78,7 +78,6 @@ static int apc_read_packet(AVFormatContext *s, AVPacket *pkt)
{
if (av_get_packet(s->pb, pkt, MAX_READ_SIZE) <= 0)
return AVERROR(EIO);
- pkt->flags &= ~AV_PKT_FLAG_CORRUPT;
pkt->stream_index = 0;
return 0;
}