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 | 5 +++++
libavcodec/version.h | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index e1fd475..e67e26b 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -791,6 +791,10 @@ typedef struct AVPacket {
uint8_t *data;
int size;
int stream_index;
+ /**
+ * Signal if the current packet is a keyframe (AV_PKT_FLAG_KEY) or
+ * if the packet is incomplete/corrupted (AV_PKT_FLAG_CORRUPT)
+ */
int flags;
/**
* Additional packet data that can be provided by the container.
@@ -832,6 +836,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/libavcodec/version.h b/libavcodec/version.h
index 46e5499..24d2488 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -22,7 +22,7 @@
#define LIBAVCODEC_VERSION_MAJOR 53
#define LIBAVCODEC_VERSION_MINOR 7
-#define LIBAVCODEC_VERSION_MICRO 0
+#define LIBAVCODEC_VERSION_MICRO 1
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \
--
1.7.4.rc3
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel