aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h2645_parse.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-03-21 12:42:12 +0100
committerAnton Khirnov <anton@khirnov.net>2016-03-28 09:47:25 +0200
commit90ed6c5cf7f236bc9efb47c97b40358c666d1386 (patch)
tree102c7499ceb66eefccfc28a978ee7c51692882f2 /libavcodec/h2645_parse.h
parentb667252a41fbf5a3f6ea8c67fdbc03db3d748977 (diff)
downloadffmpeg-90ed6c5cf7f236bc9efb47c97b40358c666d1386.tar.gz
h2645_parse: compute the actual data length, without trailing paddding
This is required by h264.
Diffstat (limited to 'libavcodec/h2645_parse.h')
-rw-r--r--libavcodec/h2645_parse.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/h2645_parse.h b/libavcodec/h2645_parse.h
index 148ccf30ac..651cf26795 100644
--- a/libavcodec/h2645_parse.h
+++ b/libavcodec/h2645_parse.h
@@ -33,6 +33,12 @@ typedef struct H2645NAL {
int size;
const uint8_t *data;
+ /**
+ * Size, in bits, of just the data, excluding the stop bit and any trailing
+ * padding. I.e. what HEVC calls SODB.
+ */
+ int size_bits;
+
int raw_size;
const uint8_t *raw_data;