Use AV_PKT_FLAG_CORRUPT flag to mark packets that might be incomplete
or have errors. Formats that have a mean to validate their packets
should use this flag to deliver such information instead of silently
dropping the packets.
---
libavcodec/avcodec.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 75c107c..286e924 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -832,6 +832,7 @@ typedef struct AVPacket {
int64_t convergence_duration;
} AVPacket;
#define AV_PKT_FLAG_KEY 0x0001
+#define AV_PKT_FLAG_CORRUPT 0x0002
/**
* Audio Video Frame.
--
1.7.6
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel