Browse code

lavc: Add flag to mark packets containing trusted input

Mark Thompson authored on 2017/09/08 06:27:09
Showing 3 changed files
... ...
@@ -15,6 +15,9 @@ libavutil:     2015-08-28
15 15
 
16 16
 API changes, most recent first:
17 17
 
18
+2017-09-13 - xxxxxxx - lavc 57.106.100 - avcodec.h
19
+  Add AV_PKT_FLAG_TRUSTED.
20
+
18 21
 2017-09-13 - xxxxxxx - lavu 55.75.100 - hwcontext.h hwcontext_drm.h
19 22
   Add AV_HWDEVICE_TYPE_DRM and implementation.
20 23
 
... ...
@@ -1709,6 +1709,13 @@ typedef struct AVPacket {
1709 1709
  * after decoding.
1710 1710
  **/
1711 1711
 #define AV_PKT_FLAG_DISCARD   0x0004
1712
+/**
1713
+ * The packet comes from a trusted source.
1714
+ *
1715
+ * Otherwise-unsafe constructs such as arbitrary pointers to data
1716
+ * outside the packet may be followed.
1717
+ */
1718
+#define AV_PKT_FLAG_TRUSTED   0x0008
1712 1719
 
1713 1720
 enum AVSideDataParamChangeFlags {
1714 1721
     AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT  = 0x0001,
... ...
@@ -28,7 +28,7 @@
28 28
 #include "libavutil/version.h"
29 29
 
30 30
 #define LIBAVCODEC_VERSION_MAJOR  57
31
-#define LIBAVCODEC_VERSION_MINOR 105
31
+#define LIBAVCODEC_VERSION_MINOR 106
32 32
 #define LIBAVCODEC_VERSION_MICRO 100
33 33
 
34 34
 #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \