summaryrefslogtreecommitdiff
path: root/libavcodec/hevc_sei.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/hevc_sei.c')
-rw-r--r--libavcodec/hevc_sei.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/libavcodec/hevc_sei.c b/libavcodec/hevc_sei.c
index 5c404a3cdc..24f27c88b5 100644
--- a/libavcodec/hevc_sei.c
+++ b/libavcodec/hevc_sei.c
@@ -25,7 +25,8 @@
#include "hevc.h"
#include "golomb.h"
-static void decode_nal_sei_decoded_picture_hash(HEVCContext *s, int payload_size)
+static void decode_nal_sei_decoded_picture_hash(HEVCContext *s,
+ int payload_size)
{
int cIdx, i;
uint8_t hash_type;
@@ -34,17 +35,16 @@ static void decode_nal_sei_decoded_picture_hash(HEVCContext *s, int payload_size
GetBitContext *gb = &s->HEVClc->gb;
hash_type = get_bits(gb, 8);
-
- for( cIdx = 0; cIdx < 3/*((s->sps->chroma_format_idc == 0) ? 1 : 3)*/; cIdx++ ) {
- if ( hash_type == 0 ) {
+ for (cIdx = 0; cIdx < 3/*((s->sps->chroma_format_idc == 0) ? 1 : 3)*/; cIdx++) {
+ if (hash_type == 0) {
s->is_md5 = 1;
- for( i = 0; i < 16; i++) {
+ for (i = 0; i < 16; i++) {
s->md5[cIdx][i] = get_bits(gb, 8);
- }
- } else if( hash_type == 1 ) {
+ }
+ } else if( hash_type == 1) {
// picture_crc = get_bits(gb, 16);
skip_bits(gb, 16);
- } else if( hash_type == 2 ) {
+ } else if (hash_type == 2) {
// picture_checksum = get_bits(gb, 32);
skip_bits(gb, 32);
}
@@ -101,7 +101,8 @@ static int decode_pic_timing(HEVCContext *s)
return 1;
}
-static void active_parameter_sets(HEVCContext *s) {
+static void active_parameter_sets(HEVCContext *s)
+{
GetBitContext *gb = &s->HEVClc->gb;
int num_sps_ids_minus1;
int i;