Luca Barbato <[email protected]> writes: > --- > libavcodec/avcodec.h | 1 + > libavformat/mpegts.c | 2 +- > 2 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h > index 40c30fc..f17bcf5 100644 > --- a/libavcodec/avcodec.h > +++ b/libavcodec/avcodec.h > @@ -1088,6 +1088,7 @@ typedef struct AVPacket { > int64_t convergence_duration; > } AVPacket; > #define AV_PKT_FLAG_KEY 0x0001 > +#define AV_PKT_FLAG_CORRUPT 0x0002 > > /** > * Audio Video Frame. > diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c > index 05bc4dc..fed7705 100644 > --- a/libavformat/mpegts.c > +++ b/libavformat/mpegts.c > @@ -1269,7 +1269,7 @@ static int handle_packet(MpegTSContext *ts, const > uint8_t *packet) > tss->last_cc = cc; > if (!cc_ok) { > av_log(NULL, AV_LOG_WARNING, "Continuity Check Failed\n"); > - return -1; > + ts->pkt->flags |= AV_PKT_FLAG_CORRUPT; > } > /* skip adaptation field */ > afc = (packet[3] >> 4) & 3; > --
Looks OK to me. This does change the API, so that should be noted along with version bumps as necessary (minor). -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
