Commit 91f775e0 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt Committed by Michael Niedermayer

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: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 78676ee8
...@@ -78,7 +78,6 @@ static int apc_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -78,7 +78,6 @@ static int apc_read_packet(AVFormatContext *s, AVPacket *pkt)
{ {
if (av_get_packet(s->pb, pkt, MAX_READ_SIZE) <= 0) if (av_get_packet(s->pb, pkt, MAX_READ_SIZE) <= 0)
return AVERROR(EIO); return AVERROR(EIO);
pkt->flags &= ~AV_PKT_FLAG_CORRUPT;
pkt->stream_index = 0; pkt->stream_index = 0;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment