summaryrefslogtreecommitdiff
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-05-17 15:35:50 +0200
committerAnton Khirnov <anton@khirnov.net>2016-06-21 11:08:56 +0200
commitf966498e433fead2f5e6b5b66fad2ac062146d22 (patch)
tree212757e848db68db4b7fa516d52befa2864cd7fe /libavcodec/h264.h
parent54dd9b1cdd9e54f1ee39ae25af0324f8aba2831b (diff)
h264: decode the poc values from the slice header into the per-slice context
Copy them into the decoder-global context in field_start(). This avoids modifying the decoder-global context during bitstream parsing.
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r--libavcodec/h264.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index 6cd2506e6f..4a109e119c 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -446,6 +446,11 @@ typedef struct H264SliceContext {
MMCO mmco[MAX_MMCO_COUNT];
int nb_mmco;
int explicit_ref_marking;
+
+ int frame_num;
+ int poc_lsb;
+ int delta_poc_bottom;
+ int delta_poc[2];
} H264SliceContext;
/**