mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 05:24:42 +00:00
avformat/demux: preserve AV_PKT_FLAG_CORRUPT in parse_packet
If original packet is corrupted, then parsed packet is probably corrupted too. Let the application decide what to do. Signed-off-by: Alex Shumsky <alexthreed@gmail.com>
This commit is contained in:
parent
783935de18
commit
3925b826df
@ -1179,7 +1179,7 @@ static int parse_packet(AVFormatContext *s, AVPacket *pkt,
|
||||
out_pkt->pts = sti->parser->pts;
|
||||
out_pkt->dts = sti->parser->dts;
|
||||
out_pkt->pos = sti->parser->pos;
|
||||
out_pkt->flags |= pkt->flags & AV_PKT_FLAG_DISCARD;
|
||||
out_pkt->flags |= pkt->flags & (AV_PKT_FLAG_DISCARD | AV_PKT_FLAG_CORRUPT);
|
||||
|
||||
if (sti->need_parsing == AVSTREAM_PARSE_FULL_RAW)
|
||||
out_pkt->pos = sti->parser->frame_offset;
|
||||
|
Loading…
Reference in New Issue
Block a user