libavcodec/h264_parser.c:224: error: Null Dereference
  pointer `h->gb.buffer` last assigned on line 221 could be null and is dereferenced by call to `ff_h264_decode_seq_parameter_set()` at line 224, column 13.

libavcodec/h264_parser.c:171:1: start of procedure parse_nal_units()
169.  * @param buf_size size of the buffer.
170.  */
171. static inline int parse_nal_units(AVCodecParserContext *s,
     ^
172.                                   AVCodecContext *avctx,
173.                                   const uint8_t *buf, int buf_size)

libavcodec/h264_parser.c:175:5: 
173.                                   const uint8_t *buf, int buf_size)
174. {
175.     H264Context *h         = s->priv_data;
         ^
176.     const uint8_t *buf_end = buf + buf_size;
177.     unsigned int pps_id;

libavcodec/h264_parser.c:176:5: 
174. {
175.     H264Context *h         = s->priv_data;
176.     const uint8_t *buf_end = buf + buf_size;
         ^
177.     unsigned int pps_id;
178.     unsigned int slice_type;

libavcodec/h264_parser.c:179:5: 
177.     unsigned int pps_id;
178.     unsigned int slice_type;
179.     int state = -1, got_reset = 0;
         ^
180.     const uint8_t *ptr;
181.     int field_poc[2];

libavcodec/h264_parser.c:184:5: 
182. 
183.     /* set some sane default values */
184.     s->pict_type         = AV_PICTURE_TYPE_I;
         ^
185.     s->key_frame         = 0;
186.     s->picture_structure = AV_PICTURE_STRUCTURE_UNKNOWN;

libavcodec/h264_parser.c:185:5: 
183.     /* set some sane default values */
184.     s->pict_type         = AV_PICTURE_TYPE_I;
185.     s->key_frame         = 0;
         ^
186.     s->picture_structure = AV_PICTURE_STRUCTURE_UNKNOWN;
187. 

libavcodec/h264_parser.c:186:5: 
184.     s->pict_type         = AV_PICTURE_TYPE_I;
185.     s->key_frame         = 0;
186.     s->picture_structure = AV_PICTURE_STRUCTURE_UNKNOWN;
         ^
187. 
188.     h->avctx = avctx;

libavcodec/h264_parser.c:188:5: 
186.     s->picture_structure = AV_PICTURE_STRUCTURE_UNKNOWN;
187. 
188.     h->avctx = avctx;
         ^
189.     ff_h264_reset_sei(h);
190. 

libavcodec/h264_parser.c:189:5: 
187. 
188.     h->avctx = avctx;
189.     ff_h264_reset_sei(h);
         ^
190. 
191.     if (!buf_size)

libavcodec/h264_sei.c:37:1: start of procedure ff_h264_reset_sei()
  35. };
  36. 
  37. void ff_h264_reset_sei(H264Context *h)
      ^
  38. {
  39.     h->sei_recovery_frame_cnt       = -1;

libavcodec/h264_sei.c:39:5: 
  37. void ff_h264_reset_sei(H264Context *h)
  38. {
  39.     h->sei_recovery_frame_cnt       = -1;
          ^
  40.     h->sei_dpb_output_delay         =  0;
  41.     h->sei_cpb_removal_delay        = -1;

libavcodec/h264_sei.c:40:5: 
  38. {
  39.     h->sei_recovery_frame_cnt       = -1;
  40.     h->sei_dpb_output_delay         =  0;
          ^
  41.     h->sei_cpb_removal_delay        = -1;
  42.     h->sei_buffering_period_present =  0;

libavcodec/h264_sei.c:41:5: 
  39.     h->sei_recovery_frame_cnt       = -1;
  40.     h->sei_dpb_output_delay         =  0;
  41.     h->sei_cpb_removal_delay        = -1;
          ^
  42.     h->sei_buffering_period_present =  0;
  43.     h->sei_frame_packing_present    =  0;

libavcodec/h264_sei.c:42:5: 
  40.     h->sei_dpb_output_delay         =  0;
  41.     h->sei_cpb_removal_delay        = -1;
  42.     h->sei_buffering_period_present =  0;
          ^
  43.     h->sei_frame_packing_present    =  0;
  44.     h->sei_display_orientation_present = 0;

libavcodec/h264_sei.c:43:5: 
  41.     h->sei_cpb_removal_delay        = -1;
  42.     h->sei_buffering_period_present =  0;
  43.     h->sei_frame_packing_present    =  0;
          ^
  44.     h->sei_display_orientation_present = 0;
  45. }

libavcodec/h264_sei.c:44:5: 
  42.     h->sei_buffering_period_present =  0;
  43.     h->sei_frame_packing_present    =  0;
  44.     h->sei_display_orientation_present = 0;
          ^
  45. }
  46. 

libavcodec/h264_sei.c:45:1: return from a call to ff_h264_reset_sei
  43.     h->sei_frame_packing_present    =  0;
  44.     h->sei_display_orientation_present = 0;
  45. }
      ^
  46. 
  47. static int decode_picture_timing(H264Context *h)

libavcodec/h264_parser.c:191:10: Taking false branch
189.     ff_h264_reset_sei(h);
190. 
191.     if (!buf_size)
              ^
192.         return 0;
193. 

libavcodec/h264_parser.c:393:5: Loop condition is true. Entering loop body
391.         }
392.         buf += consumed;
393.     }
         ^
394.     /* didn't find a picture! */
395.     av_log(h->avctx, AV_LOG_ERROR, "missing picture in access unit\n");

libavcodec/h264_parser.c:196:9: Skipping avpriv_find_start_code(): empty list of specs
194.     for (;;) {
195.         int src_length, dst_length, consumed;
196.         buf = avpriv_find_start_code(buf, buf_end, &state);
             ^
197.         if (buf >= buf_end)
198.             break;

libavcodec/h264_parser.c:197:13: Taking false branch
195.         int src_length, dst_length, consumed;
196.         buf = avpriv_find_start_code(buf, buf_end, &state);
197.         if (buf >= buf_end)
                 ^
198.             break;
199.         --buf;

libavcodec/h264_parser.c:199:9: 
197.         if (buf >= buf_end)
198.             break;
199.         --buf;
             ^
200.         src_length = buf_end - buf;
201.         switch (state & 0x1f) {

libavcodec/h264_parser.c:200:9: 
198.             break;
199.         --buf;
200.         src_length = buf_end - buf;
             ^
201.         switch (state & 0x1f) {
202.         case NAL_SLICE:

libavcodec/h264_parser.c:201:9: 
199.         --buf;
200.         src_length = buf_end - buf;
201.         switch (state & 0x1f) {
             ^
202.         case NAL_SLICE:
203.         case NAL_IDR_SLICE:

libavcodec/h264_parser.c:202:9: Switch condition is true. Entering switch case
200.         src_length = buf_end - buf;
201.         switch (state & 0x1f) {
202.         case NAL_SLICE:
             ^
203.         case NAL_IDR_SLICE:
204.             // Do not walk the whole buffer just to decode slice header

libavcodec/h264_parser.c:205:17: Taking false branch
203.         case NAL_IDR_SLICE:
204.             // Do not walk the whole buffer just to decode slice header
205.             if ((state & 0x1f) == NAL_IDR_SLICE || ((state >> 5) & 0x3) == 0) {
                     ^
206.                 /* IDR or disposable slice
207.                  * No need to decode many bytes because MMCOs shall not be present. */

libavcodec/h264_parser.c:205:52: Taking false branch
203.         case NAL_IDR_SLICE:
204.             // Do not walk the whole buffer just to decode slice header
205.             if ((state & 0x1f) == NAL_IDR_SLICE || ((state >> 5) & 0x3) == 0) {
                                                        ^
206.                 /* IDR or disposable slice
207.                  * No need to decode many bytes because MMCOs shall not be present. */

libavcodec/h264_parser.c:212:21: Taking false branch
210.             } else {
211.                 /* To decode up to MMCOs */
212.                 if (src_length > 1000)
                         ^
213.                     src_length = 1000;
214.             }

libavcodec/h264_parser.c:217:9: Skipping ff_h264_decode_nal(): empty list of specs
215.             break;
216.         }
217.         ptr = ff_h264_decode_nal(h, buf, &dst_length, &consumed, src_length);
             ^
218.         if (!ptr || dst_length < 0)
219.             break;

libavcodec/h264_parser.c:218:14: Taking false branch
216.         }
217.         ptr = ff_h264_decode_nal(h, buf, &dst_length, &consumed, src_length);
218.         if (!ptr || dst_length < 0)
                  ^
219.             break;
220. 

libavcodec/h264_parser.c:218:21: Taking false branch
216.         }
217.         ptr = ff_h264_decode_nal(h, buf, &dst_length, &consumed, src_length);
218.         if (!ptr || dst_length < 0)
                         ^
219.             break;
220. 

libavcodec/h264_parser.c:221:9: 
219.             break;
220. 
221.         init_get_bits(&h->gb, ptr, 8 * dst_length);
             ^
222.         switch (h->nal_unit_type) {
223.         case NAL_SPS:

libavcodec/get_bits.h:376:1: start of procedure init_get_bits()
  374.  * @return 0 on success, AVERROR_INVALIDDATA if the buffer_size would overflow.
  375.  */
  376. static inline int init_get_bits(GetBitContext *s, const uint8_t *buffer,
       ^
  377.                                 int bit_size)
  378. {

libavcodec/get_bits.h:380:5: 
  378. {
  379.     int buffer_size;
  380.     int ret = 0;
           ^
  381. 
  382.     if (bit_size > INT_MAX - 7 || bit_size < 0 || !buffer) {

libavcodec/get_bits.h:382:9: Taking true branch
  380.     int ret = 0;
  381. 
  382.     if (bit_size > INT_MAX - 7 || bit_size < 0 || !buffer) {
               ^
  383.         bit_size    = 0;
  384.         buffer      = NULL;

libavcodec/get_bits.h:383:9: 
  381. 
  382.     if (bit_size > INT_MAX - 7 || bit_size < 0 || !buffer) {
  383.         bit_size    = 0;
               ^
  384.         buffer      = NULL;
  385.         ret         = AVERROR_INVALIDDATA;

libavcodec/get_bits.h:384:9: 
  382.     if (bit_size > INT_MAX - 7 || bit_size < 0 || !buffer) {
  383.         bit_size    = 0;
  384.         buffer      = NULL;
               ^
  385.         ret         = AVERROR_INVALIDDATA;
  386.     }

libavcodec/get_bits.h:385:9: 
  383.         bit_size    = 0;
  384.         buffer      = NULL;
  385.         ret         = AVERROR_INVALIDDATA;
               ^
  386.     }
  387. 

libavcodec/get_bits.h:388:5: 
  386.     }
  387. 
  388.     buffer_size = (bit_size + 7) >> 3;
           ^
  389. 
  390.     s->buffer             = buffer;

libavcodec/get_bits.h:390:5: 
  388.     buffer_size = (bit_size + 7) >> 3;
  389. 
  390.     s->buffer             = buffer;
           ^
  391.     s->size_in_bits       = bit_size;
  392. #if !UNCHECKED_BITSTREAM_READER

libavcodec/get_bits.h:391:5: 
  389. 
  390.     s->buffer             = buffer;
  391.     s->size_in_bits       = bit_size;
           ^
  392. #if !UNCHECKED_BITSTREAM_READER
  393.     s->size_in_bits_plus8 = bit_size + 8;

libavcodec/get_bits.h:393:5: 
  391.     s->size_in_bits       = bit_size;
  392. #if !UNCHECKED_BITSTREAM_READER
  393.     s->size_in_bits_plus8 = bit_size + 8;
           ^
  394. #endif
  395.     s->buffer_end         = buffer + buffer_size;

libavcodec/get_bits.h:395:5: 
  393.     s->size_in_bits_plus8 = bit_size + 8;
  394. #endif
  395.     s->buffer_end         = buffer + buffer_size;
           ^
  396.     s->index              = 0;
  397. 

libavcodec/get_bits.h:396:5: 
  394. #endif
  395.     s->buffer_end         = buffer + buffer_size;
  396.     s->index              = 0;
           ^
  397. 
  398.     return ret;

libavcodec/get_bits.h:398:5: 
  396.     s->index              = 0;
  397. 
  398.     return ret;
           ^
  399. }
  400. 

libavcodec/get_bits.h:399:1: return from a call to init_get_bits
  397. 
  398.     return ret;
  399. }
       ^
  400. 
  401. /**

libavcodec/h264_parser.c:222:9: 
220. 
221.         init_get_bits(&h->gb, ptr, 8 * dst_length);
222.         switch (h->nal_unit_type) {
             ^
223.         case NAL_SPS:
224.             ff_h264_decode_seq_parameter_set(h);

libavcodec/h264_parser.c:223:9: Switch condition is true. Entering switch case
221.         init_get_bits(&h->gb, ptr, 8 * dst_length);
222.         switch (h->nal_unit_type) {
223.         case NAL_SPS:
             ^
224.             ff_h264_decode_seq_parameter_set(h);
225.             break;

libavcodec/h264_parser.c:224:13: 
222.         switch (h->nal_unit_type) {
223.         case NAL_SPS:
224.             ff_h264_decode_seq_parameter_set(h);
                 ^
225.             break;
226.         case NAL_PPS:

libavcodec/h264_ps.c:299:1: start of procedure ff_h264_decode_seq_parameter_set()
  297. }
  298. 
  299. int ff_h264_decode_seq_parameter_set(H264Context *h)
       ^
  300. {
  301.     int profile_idc, level_idc, constraint_set_flags = 0;

libavcodec/h264_ps.c:301:5: 
  299. int ff_h264_decode_seq_parameter_set(H264Context *h)
  300. {
  301.     int profile_idc, level_idc, constraint_set_flags = 0;
           ^
  302.     unsigned int sps_id;
  303.     int i, log2_max_frame_num_minus4;

libavcodec/h264_ps.c:306:5: Skipping get_bits(): empty list of specs
  304.     SPS *sps;
  305. 
  306.     profile_idc           = get_bits(&h->gb, 8);
           ^
  307.     constraint_set_flags |= get_bits1(&h->gb) << 0;   // constraint_set0_flag
  308.     constraint_set_flags |= get_bits1(&h->gb) << 1;   // constraint_set1_flag

libavcodec/h264_ps.c:307:5: 
  305. 
  306.     profile_idc           = get_bits(&h->gb, 8);
  307.     constraint_set_flags |= get_bits1(&h->gb) << 0;   // constraint_set0_flag
           ^
  308.     constraint_set_flags |= get_bits1(&h->gb) << 1;   // constraint_set1_flag
  309.     constraint_set_flags |= get_bits1(&h->gb) << 2;   // constraint_set2_flag

libavcodec/get_bits.h:272:1: start of procedure get_bits1()
    270. }
    271. 
    272. static inline unsigned int get_bits1(GetBitContext *s)
         ^
    273. {
    274.     unsigned int index = s->index;

libavcodec/get_bits.h:274:5: 
    272. static inline unsigned int get_bits1(GetBitContext *s)
    273. {
    274.     unsigned int index = s->index;
             ^
    275.     uint8_t result     = s->buffer[index >> 3];
    276. #ifdef BITSTREAM_READER_LE

libavcodec/get_bits.h:275:5: 
    273. {
    274.     unsigned int index = s->index;
    275.     uint8_t result     = s->buffer[index >> 3];
             ^
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;

libavcodec/get_bits.h:277:5: 
    275.     uint8_t result     = s->buffer[index >> 3];
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;
             ^
    278.     result  &= 1;
    279. #else

libavcodec/get_bits.h:278:5: 
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;
    278.     result  &= 1;
             ^
    279. #else
    280.     result <<= index & 7;

libavcodec/get_bits.h:284:9: Taking true branch
    282. #endif
    283. #if !UNCHECKED_BITSTREAM_READER
    284.     if (s->index < s->size_in_bits_plus8)
                 ^
    285. #endif
    286.         index++;

libavcodec/get_bits.h:286:9: 
    284.     if (s->index < s->size_in_bits_plus8)
    285. #endif
    286.         index++;
                 ^
    287.     s->index = index;
    288. 

libavcodec/get_bits.h:287:5: 
    285. #endif
    286.         index++;
    287.     s->index = index;
             ^
    288. 
    289.     return result;

libavcodec/get_bits.h:289:5: 
    287.     s->index = index;
    288. 
    289.     return result;
             ^
    290. }
    291. 

libavcodec/get_bits.h:290:1: return from a call to get_bits1
    288. 
    289.     return result;
    290. }
         ^
    291. 
    292. static inline unsigned int show_bits1(GetBitContext *s)

libavcodec/h264_ps.c:308:5: 
  306.     profile_idc           = get_bits(&h->gb, 8);
  307.     constraint_set_flags |= get_bits1(&h->gb) << 0;   // constraint_set0_flag
  308.     constraint_set_flags |= get_bits1(&h->gb) << 1;   // constraint_set1_flag
           ^
  309.     constraint_set_flags |= get_bits1(&h->gb) << 2;   // constraint_set2_flag
  310.     constraint_set_flags |= get_bits1(&h->gb) << 3;   // constraint_set3_flag

libavcodec/get_bits.h:272:1: start of procedure get_bits1()
    270. }
    271. 
    272. static inline unsigned int get_bits1(GetBitContext *s)
         ^
    273. {
    274.     unsigned int index = s->index;

libavcodec/get_bits.h:274:5: 
    272. static inline unsigned int get_bits1(GetBitContext *s)
    273. {
    274.     unsigned int index = s->index;
             ^
    275.     uint8_t result     = s->buffer[index >> 3];
    276. #ifdef BITSTREAM_READER_LE

libavcodec/get_bits.h:275:5: 
    273. {
    274.     unsigned int index = s->index;
    275.     uint8_t result     = s->buffer[index >> 3];
             ^
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;

libavcodec/get_bits.h:277:5: 
    275.     uint8_t result     = s->buffer[index >> 3];
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;
             ^
    278.     result  &= 1;
    279. #else

libavcodec/get_bits.h:278:5: 
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;
    278.     result  &= 1;
             ^
    279. #else
    280.     result <<= index & 7;

libavcodec/get_bits.h:284:9: Taking true branch
    282. #endif
    283. #if !UNCHECKED_BITSTREAM_READER
    284.     if (s->index < s->size_in_bits_plus8)
                 ^
    285. #endif
    286.         index++;

libavcodec/get_bits.h:286:9: 
    284.     if (s->index < s->size_in_bits_plus8)
    285. #endif
    286.         index++;
                 ^
    287.     s->index = index;
    288. 

libavcodec/get_bits.h:287:5: 
    285. #endif
    286.         index++;
    287.     s->index = index;
             ^
    288. 
    289.     return result;

libavcodec/get_bits.h:289:5: 
    287.     s->index = index;
    288. 
    289.     return result;
             ^
    290. }
    291. 

libavcodec/get_bits.h:290:1: return from a call to get_bits1
    288. 
    289.     return result;
    290. }
         ^
    291. 
    292. static inline unsigned int show_bits1(GetBitContext *s)

libavcodec/h264_ps.c:309:5: 
  307.     constraint_set_flags |= get_bits1(&h->gb) << 0;   // constraint_set0_flag
  308.     constraint_set_flags |= get_bits1(&h->gb) << 1;   // constraint_set1_flag
  309.     constraint_set_flags |= get_bits1(&h->gb) << 2;   // constraint_set2_flag
           ^
  310.     constraint_set_flags |= get_bits1(&h->gb) << 3;   // constraint_set3_flag
  311.     constraint_set_flags |= get_bits1(&h->gb) << 4;   // constraint_set4_flag

libavcodec/get_bits.h:272:1: start of procedure get_bits1()
    270. }
    271. 
    272. static inline unsigned int get_bits1(GetBitContext *s)
         ^
    273. {
    274.     unsigned int index = s->index;

libavcodec/get_bits.h:274:5: 
    272. static inline unsigned int get_bits1(GetBitContext *s)
    273. {
    274.     unsigned int index = s->index;
             ^
    275.     uint8_t result     = s->buffer[index >> 3];
    276. #ifdef BITSTREAM_READER_LE

libavcodec/get_bits.h:275:5: 
    273. {
    274.     unsigned int index = s->index;
    275.     uint8_t result     = s->buffer[index >> 3];
             ^
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;

libavcodec/get_bits.h:277:5: 
    275.     uint8_t result     = s->buffer[index >> 3];
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;
             ^
    278.     result  &= 1;
    279. #else

libavcodec/get_bits.h:278:5: 
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;
    278.     result  &= 1;
             ^
    279. #else
    280.     result <<= index & 7;

libavcodec/get_bits.h:284:9: Taking true branch
    282. #endif
    283. #if !UNCHECKED_BITSTREAM_READER
    284.     if (s->index < s->size_in_bits_plus8)
                 ^
    285. #endif
    286.         index++;

libavcodec/get_bits.h:286:9: 
    284.     if (s->index < s->size_in_bits_plus8)
    285. #endif
    286.         index++;
                 ^
    287.     s->index = index;
    288. 

libavcodec/get_bits.h:287:5: 
    285. #endif
    286.         index++;
    287.     s->index = index;
             ^
    288. 
    289.     return result;

libavcodec/get_bits.h:289:5: 
    287.     s->index = index;
    288. 
    289.     return result;
             ^
    290. }
    291. 

libavcodec/get_bits.h:290:1: return from a call to get_bits1
    288. 
    289.     return result;
    290. }
         ^
    291. 
    292. static inline unsigned int show_bits1(GetBitContext *s)

libavcodec/h264_ps.c:310:5: 
  308.     constraint_set_flags |= get_bits1(&h->gb) << 1;   // constraint_set1_flag
  309.     constraint_set_flags |= get_bits1(&h->gb) << 2;   // constraint_set2_flag
  310.     constraint_set_flags |= get_bits1(&h->gb) << 3;   // constraint_set3_flag
           ^
  311.     constraint_set_flags |= get_bits1(&h->gb) << 4;   // constraint_set4_flag
  312.     constraint_set_flags |= get_bits1(&h->gb) << 5;   // constraint_set5_flag

libavcodec/get_bits.h:272:1: start of procedure get_bits1()
    270. }
    271. 
    272. static inline unsigned int get_bits1(GetBitContext *s)
         ^
    273. {
    274.     unsigned int index = s->index;

libavcodec/get_bits.h:274:5: 
    272. static inline unsigned int get_bits1(GetBitContext *s)
    273. {
    274.     unsigned int index = s->index;
             ^
    275.     uint8_t result     = s->buffer[index >> 3];
    276. #ifdef BITSTREAM_READER_LE

libavcodec/get_bits.h:275:5: 
    273. {
    274.     unsigned int index = s->index;
    275.     uint8_t result     = s->buffer[index >> 3];
             ^
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;

libavcodec/get_bits.h:277:5: 
    275.     uint8_t result     = s->buffer[index >> 3];
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;
             ^
    278.     result  &= 1;
    279. #else

libavcodec/get_bits.h:278:5: 
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;
    278.     result  &= 1;
             ^
    279. #else
    280.     result <<= index & 7;

libavcodec/get_bits.h:284:9: Taking true branch
    282. #endif
    283. #if !UNCHECKED_BITSTREAM_READER
    284.     if (s->index < s->size_in_bits_plus8)
                 ^
    285. #endif
    286.         index++;

libavcodec/get_bits.h:286:9: 
    284.     if (s->index < s->size_in_bits_plus8)
    285. #endif
    286.         index++;
                 ^
    287.     s->index = index;
    288. 

libavcodec/get_bits.h:287:5: 
    285. #endif
    286.         index++;
    287.     s->index = index;
             ^
    288. 
    289.     return result;

libavcodec/get_bits.h:289:5: 
    287.     s->index = index;
    288. 
    289.     return result;
             ^
    290. }
    291. 

libavcodec/get_bits.h:290:1: return from a call to get_bits1
    288. 
    289.     return result;
    290. }
         ^
    291. 
    292. static inline unsigned int show_bits1(GetBitContext *s)

libavcodec/h264_ps.c:311:5: 
  309.     constraint_set_flags |= get_bits1(&h->gb) << 2;   // constraint_set2_flag
  310.     constraint_set_flags |= get_bits1(&h->gb) << 3;   // constraint_set3_flag
  311.     constraint_set_flags |= get_bits1(&h->gb) << 4;   // constraint_set4_flag
           ^
  312.     constraint_set_flags |= get_bits1(&h->gb) << 5;   // constraint_set5_flag
  313.     skip_bits(&h->gb, 2);                             // reserved_zero_2bits

libavcodec/get_bits.h:272:1: start of procedure get_bits1()
    270. }
    271. 
    272. static inline unsigned int get_bits1(GetBitContext *s)
         ^
    273. {
    274.     unsigned int index = s->index;

libavcodec/get_bits.h:274:5: 
    272. static inline unsigned int get_bits1(GetBitContext *s)
    273. {
    274.     unsigned int index = s->index;
             ^
    275.     uint8_t result     = s->buffer[index >> 3];
    276. #ifdef BITSTREAM_READER_LE

libavcodec/get_bits.h:275:5: 
    273. {
    274.     unsigned int index = s->index;
    275.     uint8_t result     = s->buffer[index >> 3];
             ^
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;

libavcodec/get_bits.h:277:5: 
    275.     uint8_t result     = s->buffer[index >> 3];
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;
             ^
    278.     result  &= 1;
    279. #else

libavcodec/get_bits.h:278:5: 
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;
    278.     result  &= 1;
             ^
    279. #else
    280.     result <<= index & 7;

libavcodec/get_bits.h:284:9: Taking true branch
    282. #endif
    283. #if !UNCHECKED_BITSTREAM_READER
    284.     if (s->index < s->size_in_bits_plus8)
                 ^
    285. #endif
    286.         index++;

libavcodec/get_bits.h:286:9: 
    284.     if (s->index < s->size_in_bits_plus8)
    285. #endif
    286.         index++;
                 ^
    287.     s->index = index;
    288. 

libavcodec/get_bits.h:287:5: 
    285. #endif
    286.         index++;
    287.     s->index = index;
             ^
    288. 
    289.     return result;

libavcodec/get_bits.h:289:5: 
    287.     s->index = index;
    288. 
    289.     return result;
             ^
    290. }
    291. 

libavcodec/get_bits.h:290:1: return from a call to get_bits1
    288. 
    289.     return result;
    290. }
         ^
    291. 
    292. static inline unsigned int show_bits1(GetBitContext *s)

libavcodec/h264_ps.c:312:5: 
  310.     constraint_set_flags |= get_bits1(&h->gb) << 3;   // constraint_set3_flag
  311.     constraint_set_flags |= get_bits1(&h->gb) << 4;   // constraint_set4_flag
  312.     constraint_set_flags |= get_bits1(&h->gb) << 5;   // constraint_set5_flag
           ^
  313.     skip_bits(&h->gb, 2);                             // reserved_zero_2bits
  314.     level_idc = get_bits(&h->gb, 8);

libavcodec/get_bits.h:272:1: start of procedure get_bits1()
    270. }
    271. 
    272. static inline unsigned int get_bits1(GetBitContext *s)
         ^
    273. {
    274.     unsigned int index = s->index;

libavcodec/get_bits.h:274:5: 
    272. static inline unsigned int get_bits1(GetBitContext *s)
    273. {
    274.     unsigned int index = s->index;
             ^
    275.     uint8_t result     = s->buffer[index >> 3];
    276. #ifdef BITSTREAM_READER_LE

libavcodec/get_bits.h:275:5: 
    273. {
    274.     unsigned int index = s->index;
    275.     uint8_t result     = s->buffer[index >> 3];
             ^
    276. #ifdef BITSTREAM_READER_LE
    277.     result >>= index & 7;
