[email protected]: > From: zhaoyi <[email protected]> > > --- > libavformat/utils.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavformat/utils.c b/libavformat/utils.c > index 667249362c..a74c0f74a2 100644 > --- a/libavformat/utils.c > +++ b/libavformat/utils.c > @@ -1516,6 +1516,7 @@ static int parse_packet(AVFormatContext *s, AVPacket > *pkt, > out_pkt.dts = st->parser->dts; > out_pkt.pos = st->parser->pos; > out_pkt.flags |= pkt->flags & AV_PKT_FLAG_DISCARD; > + out_pkt.flags |= pkt->flags & AV_PKT_FLAG_CORRUPT; > > if (st->need_parsing == AVSTREAM_PARSE_FULL_RAW) > out_pkt.pos = st->parser->frame_offset; > You can combine this with the line above via pkt->flags & (AV_PKT_FLAG_DISCARD | AV_PKT_FLAG_CORRUPT).
- Andreas _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
