aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2011-08-01 17:41:44 +0200
committerLuca Barbato <lu_zero@gentoo.org>2011-08-02 02:19:31 +0200
commit9d39cbf6cfecfda88e2f822b0437ee22ffa6d745 (patch)
tree0a63c6e33feb68d67f6c71ddc73640857c4ffa71 /libavcodec/avcodec.h
parent4326f6f525063e92d40e7a8f39cf7ccd7759aea7 (diff)
downloadffmpeg-9d39cbf6cfecfda88e2f822b0437ee22ffa6d745.tar.gz
avpacket: signal possibly corrupted packets
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.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index e1fd475ca6..eaf63e8dc1 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -791,6 +791,9 @@ typedef struct AVPacket {
uint8_t *data;
int size;
int stream_index;
+ /**
+ * A combination of AV_PKT_FLAG values
+ */
int flags;
/**
* Additional packet data that can be provided by the container.
@@ -831,7 +834,8 @@ typedef struct AVPacket {
*/
int64_t convergence_duration;
} AVPacket;
-#define AV_PKT_FLAG_KEY 0x0001
+#define AV_PKT_FLAG_KEY 0x0001 ///< The packet contains a keyframe
+#define AV_PKT_FLAG_CORRUPT 0x0002 ///< The packet content is corrupted
/**
* Audio Video Frame.