libavformat/oggparseflac.c:65: error: Null Dereference
  pointer `st->codec->extradata` last assigned on line 63 could be null and is dereferenced by call to `memcpy()` at line 65, column 9.

libavformat/oggparseflac.c:29:1: start of procedure flac_header()
27. #define OGG_FLAC_METADATA_TYPE_STREAMINFO 0x7F
28. 
29. static int
    ^
30. flac_header (AVFormatContext * s, int idx)
31. {

libavformat/oggparseflac.c:32:5: 
30. flac_header (AVFormatContext * s, int idx)
31. {
32.     struct ogg *ogg = s->priv_data;
        ^
33.     struct ogg_stream *os = ogg->streams + idx;
34.     AVStream *st = s->streams[idx];

libavformat/oggparseflac.c:33:5: 
31. {
32.     struct ogg *ogg = s->priv_data;
33.     struct ogg_stream *os = ogg->streams + idx;
        ^
34.     AVStream *st = s->streams[idx];
35.     GetBitContext gb;

libavformat/oggparseflac.c:34:5: 
32.     struct ogg *ogg = s->priv_data;
33.     struct ogg_stream *os = ogg->streams + idx;
34.     AVStream *st = s->streams[idx];
        ^
35.     GetBitContext gb;
36.     FLACStreaminfo si;

libavformat/oggparseflac.c:39:9: Taking false branch
37.     int mdt;
38. 
39.     if (os->buf[os->pstart] == 0xff)
            ^
40.         return 0;
41. 

libavformat/oggparseflac.c:42:5: 
40.         return 0;
41. 
42.     init_get_bits(&gb, os->buf + os->pstart, os->psize*8);
        ^
43.     skip_bits1(&gb); /* metadata_last */
44.     mdt = get_bits(&gb, 7);

libavcodec/get_bits.h:391:1: start of procedure init_get_bits()
  389.  * responsible for checking for the buffer end yourself (take advantage of the padding)!
  390.  */
  391. static inline void init_get_bits(GetBitContext *s,
       ^
  392.                    const uint8_t *buffer, int bit_size)
  393. {

libavcodec/get_bits.h:394:5: 
  392.                    const uint8_t *buffer, int bit_size)
  393. {
  394.     int buffer_size = (bit_size+7)>>3;
           ^
  395.     if (buffer_size < 0 || bit_size < 0) {
  396.         buffer_size = bit_size = 0;

libavcodec/get_bits.h:395:9: Taking false branch
  393. {
  394.     int buffer_size = (bit_size+7)>>3;
  395.     if (buffer_size < 0 || bit_size < 0) {
               ^
  396.         buffer_size = bit_size = 0;
  397.         buffer = NULL;

libavcodec/get_bits.h:395:28: Taking false branch
  393. {
  394.     int buffer_size = (bit_size+7)>>3;
  395.     if (buffer_size < 0 || bit_size < 0) {
                                  ^
  396.         buffer_size = bit_size = 0;
  397.         buffer = NULL;

libavcodec/get_bits.h:400:5: 
  398.     }
  399. 
  400.     s->buffer       = buffer;
           ^
  401.     s->size_in_bits = bit_size;
  402.     s->buffer_end   = buffer + buffer_size;

libavcodec/get_bits.h:401:5: 
  399. 
  400.     s->buffer       = buffer;
  401.     s->size_in_bits = bit_size;
           ^
  402.     s->buffer_end   = buffer + buffer_size;
  403. #ifdef ALT_BITSTREAM_READER

libavcodec/get_bits.h:402:5: 
  400.     s->buffer       = buffer;
  401.     s->size_in_bits = bit_size;
  402.     s->buffer_end   = buffer + buffer_size;
           ^
  403. #ifdef ALT_BITSTREAM_READER
  404.     s->index        = 0;

libavcodec/get_bits.h:404:5: 
  402.     s->buffer_end   = buffer + buffer_size;
  403. #ifdef ALT_BITSTREAM_READER
  404.     s->index        = 0;
           ^
  405. #elif defined A32_BITSTREAM_READER
  406.     s->buffer_ptr   = (uint32_t*)((intptr_t)buffer & ~3);

libavcodec/get_bits.h:410:1: return from a call to init_get_bits
  408.     skip_bits_long(s, 0);
  409. #endif
  410. }
       ^
  411. 
  412. static inline void align_get_bits(GetBitContext *s)

libavformat/oggparseflac.c:43:5: 
41. 
42.     init_get_bits(&gb, os->buf + os->pstart, os->psize*8);
43.     skip_bits1(&gb); /* metadata_last */
        ^
44.     mdt = get_bits(&gb, 7);
45. 

libavcodec/get_bits.h:335:1: start of procedure skip_bits1()
  333. }
  334. 
  335. static inline void skip_bits1(GetBitContext *s){
       ^
  336.     skip_bits(s, 1);
  337. }

libavcodec/get_bits.h:336:5: 
  334. 
  335. static inline void skip_bits1(GetBitContext *s){
  336.     skip_bits(s, 1);
           ^
  337. }
  338. 

libavcodec/get_bits.h:303:1: start of procedure skip_bits()
    301. }
    302. 
    303. static inline void skip_bits(GetBitContext *s, int n){
         ^
    304.  //Note gcc seems to optimize this to s->index+=n for the ALT_READER :))
    305.     OPEN_READER(re, s);

libavcodec/get_bits.h:305:5: 
    303. static inline void skip_bits(GetBitContext *s, int n){
    304.  //Note gcc seems to optimize this to s->index+=n for the ALT_READER :))
    305.     OPEN_READER(re, s);
             ^
    306.     UPDATE_CACHE(re, s);
    307.     LAST_SKIP_BITS(re, s, n);

libavcodec/get_bits.h:306:5: 
    304.  //Note gcc seems to optimize this to s->index+=n for the ALT_READER :))
    305.     OPEN_READER(re, s);
    306.     UPDATE_CACHE(re, s);
             ^
    307.     LAST_SKIP_BITS(re, s, n);
    308.     CLOSE_READER(re, s);

libavutil/bswap.h:66:1: start of procedure av_bswap32()
      64. 
      65. #ifndef av_bswap32
      66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
          ^
      67. {
      68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);

libavutil/bswap.h:68:5: 
      66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
      67. {
      68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
              ^
      69.     x= (x>>16) | (x<<16);
      70.     return x;

libavutil/bswap.h:69:5: 
      67. {
      68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
      69.     x= (x>>16) | (x<<16);
              ^
      70.     return x;
      71. }

libavutil/bswap.h:70:5: 
      68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
      69.     x= (x>>16) | (x<<16);
      70.     return x;
              ^
      71. }
      72. #endif

libavutil/bswap.h:71:1: return from a call to av_bswap32
      69.     x= (x>>16) | (x<<16);
      70.     return x;
      71. }
          ^
      72. #endif
      73. 

libavcodec/get_bits.h:307:5: 
    305.     OPEN_READER(re, s);
    306.     UPDATE_CACHE(re, s);
    307.     LAST_SKIP_BITS(re, s, n);
             ^
    308.     CLOSE_READER(re, s);
    309. }

libavcodec/get_bits.h:308:5: 
    306.     UPDATE_CACHE(re, s);
    307.     LAST_SKIP_BITS(re, s, n);
    308.     CLOSE_READER(re, s);
             ^
    309. }
    310. 

libavcodec/get_bits.h:309:1: return from a call to skip_bits
    307.     LAST_SKIP_BITS(re, s, n);
    308.     CLOSE_READER(re, s);
    309. }
         ^
    310. 
    311. static inline unsigned int get_bits1(GetBitContext *s){

libavcodec/get_bits.h:337:1: return from a call to skip_bits1
  335. static inline void skip_bits1(GetBitContext *s){
  336.     skip_bits(s, 1);
  337. }
       ^
  338. 
  339. /**

libavformat/oggparseflac.c:44:5: 
42.     init_get_bits(&gb, os->buf + os->pstart, os->psize*8);
43.     skip_bits1(&gb); /* metadata_last */
44.     mdt = get_bits(&gb, 7);
        ^
45. 
46.     if (mdt == OGG_FLAC_METADATA_TYPE_STREAMINFO) {

libavcodec/get_bits.h:282:1: start of procedure get_bits()
  280.  * Read 1-25 bits.
  281.  */
  282. static inline unsigned int get_bits(GetBitContext *s, int n){
       ^
  283.     register int tmp;
  284.     OPEN_READER(re, s);

libavcodec/get_bits.h:284:5: 
  282. static inline unsigned int get_bits(GetBitContext *s, int n){
  283.     register int tmp;
  284.     OPEN_READER(re, s);
           ^
  285.     UPDATE_CACHE(re, s);
  286.     tmp = SHOW_UBITS(re, s, n);

libavcodec/get_bits.h:285:5: 
  283.     register int tmp;
  284.     OPEN_READER(re, s);
  285.     UPDATE_CACHE(re, s);
           ^
  286.     tmp = SHOW_UBITS(re, s, n);
  287.     LAST_SKIP_BITS(re, s, n);

libavutil/bswap.h:66:1: start of procedure av_bswap32()
    64. 
    65. #ifndef av_bswap32
    66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
        ^
    67. {
    68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);

libavutil/bswap.h:68:5: 
    66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
    67. {
    68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
            ^
    69.     x= (x>>16) | (x<<16);
    70.     return x;

libavutil/bswap.h:69:5: 
    67. {
    68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
    69.     x= (x>>16) | (x<<16);
            ^
    70.     return x;
    71. }

libavutil/bswap.h:70:5: 
    68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
    69.     x= (x>>16) | (x<<16);
    70.     return x;
            ^
    71. }
    72. #endif

libavutil/bswap.h:71:1: return from a call to av_bswap32
    69.     x= (x>>16) | (x<<16);
    70.     return x;
    71. }
        ^
    72. #endif
    73. 

libavcodec/get_bits.h:286:5: 
  284.     OPEN_READER(re, s);
  285.     UPDATE_CACHE(re, s);
  286.     tmp = SHOW_UBITS(re, s, n);
           ^
  287.     LAST_SKIP_BITS(re, s, n);
  288.     CLOSE_READER(re, s);

libavcodec/get_bits.h:287:5: 
  285.     UPDATE_CACHE(re, s);
  286.     tmp = SHOW_UBITS(re, s, n);
  287.     LAST_SKIP_BITS(re, s, n);
           ^
  288.     CLOSE_READER(re, s);
  289.     return tmp;

libavcodec/get_bits.h:288:5: 
  286.     tmp = SHOW_UBITS(re, s, n);
  287.     LAST_SKIP_BITS(re, s, n);
  288.     CLOSE_READER(re, s);
           ^
  289.     return tmp;
  290. }

libavcodec/get_bits.h:289:5: 
  287.     LAST_SKIP_BITS(re, s, n);
  288.     CLOSE_READER(re, s);
  289.     return tmp;
           ^
  290. }
  291. 

libavcodec/get_bits.h:290:1: return from a call to get_bits
  288.     CLOSE_READER(re, s);
  289.     return tmp;
  290. }
       ^
  291. 
  292. /**

libavformat/oggparseflac.c:46:9: Taking true branch
44.     mdt = get_bits(&gb, 7);
45. 
46.     if (mdt == OGG_FLAC_METADATA_TYPE_STREAMINFO) {
            ^
47.         uint8_t *streaminfo_start = os->buf + os->pstart + 5 + 4 + 4 + 4;
48.         skip_bits_long(&gb, 4*8); /* "FLAC" */

libavformat/oggparseflac.c:47:9: 
45. 
46.     if (mdt == OGG_FLAC_METADATA_TYPE_STREAMINFO) {
47.         uint8_t *streaminfo_start = os->buf + os->pstart + 5 + 4 + 4 + 4;
            ^
48.         skip_bits_long(&gb, 4*8); /* "FLAC" */
49.         if(get_bits(&gb, 8) != 1) /* unsupported major version */

libavformat/oggparseflac.c:48:9: 
46.     if (mdt == OGG_FLAC_METADATA_TYPE_STREAMINFO) {
47.         uint8_t *streaminfo_start = os->buf + os->pstart + 5 + 4 + 4 + 4;
48.         skip_bits_long(&gb, 4*8); /* "FLAC" */
            ^
49.         if(get_bits(&gb, 8) != 1) /* unsupported major version */
50.             return -1;

libavcodec/get_bits.h:173:1: start of procedure skip_bits_long()
  171. }
  172. 
  173. static inline void skip_bits_long(GetBitContext *s, int n){
       ^
  174.     s->index += n;
  175. }

libavcodec/get_bits.h:174:5: 
  172. 
  173. static inline void skip_bits_long(GetBitContext *s, int n){
  174.     s->index += n;
           ^
  175. }
  176. 

libavcodec/get_bits.h:175:1: return from a call to skip_bits_long
  173. static inline void skip_bits_long(GetBitContext *s, int n){
  174.     s->index += n;
  175. }
       ^
  176. 
  177. #elif defined A32_BITSTREAM_READER

libavformat/oggparseflac.c:49:12: 
47.         uint8_t *streaminfo_start = os->buf + os->pstart + 5 + 4 + 4 + 4;
48.         skip_bits_long(&gb, 4*8); /* "FLAC" */
49.         if(get_bits(&gb, 8) != 1) /* unsupported major version */
               ^
50.             return -1;
51.         skip_bits_long(&gb, 8 + 16); /* minor version + header count */

libavcodec/get_bits.h:282:1: start of procedure get_bits()
  280.  * Read 1-25 bits.
  281.  */
  282. static inline unsigned int get_bits(GetBitContext *s, int n){
       ^
  283.     register int tmp;
  284.     OPEN_READER(re, s);

libavcodec/get_bits.h:284:5: 
  282. static inline unsigned int get_bits(GetBitContext *s, int n){
  283.     register int tmp;
  284.     OPEN_READER(re, s);
           ^
  285.     UPDATE_CACHE(re, s);
  286.     tmp = SHOW_UBITS(re, s, n);

libavcodec/get_bits.h:285:5: 
  283.     register int tmp;
  284.     OPEN_READER(re, s);
  285.     UPDATE_CACHE(re, s);
           ^
  286.     tmp = SHOW_UBITS(re, s, n);
  287.     LAST_SKIP_BITS(re, s, n);

libavutil/bswap.h:66:1: start of procedure av_bswap32()
    64. 
    65. #ifndef av_bswap32
    66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
        ^
    67. {
    68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);

libavutil/bswap.h:68:5: 
    66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
    67. {
    68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
            ^
    69.     x= (x>>16) | (x<<16);
    70.     return x;

libavutil/bswap.h:69:5: 
    67. {
    68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
    69.     x= (x>>16) | (x<<16);
            ^
    70.     return x;
    71. }

libavutil/bswap.h:70:5: 
    68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
    69.     x= (x>>16) | (x<<16);
    70.     return x;
            ^
    71. }
    72. #endif

libavutil/bswap.h:71:1: return from a call to av_bswap32
    69.     x= (x>>16) | (x<<16);
    70.     return x;
    71. }
        ^
    72. #endif
    73. 

libavcodec/get_bits.h:286:5: 
  284.     OPEN_READER(re, s);
  285.     UPDATE_CACHE(re, s);
  286.     tmp = SHOW_UBITS(re, s, n);
           ^
  287.     LAST_SKIP_BITS(re, s, n);
  288.     CLOSE_READER(re, s);

libavcodec/get_bits.h:287:5: 
  285.     UPDATE_CACHE(re, s);
  286.     tmp = SHOW_UBITS(re, s, n);
  287.     LAST_SKIP_BITS(re, s, n);
           ^
  288.     CLOSE_READER(re, s);
  289.     return tmp;

libavcodec/get_bits.h:288:5: 
  286.     tmp = SHOW_UBITS(re, s, n);
  287.     LAST_SKIP_BITS(re, s, n);
  288.     CLOSE_READER(re, s);
           ^
  289.     return tmp;
  290. }

libavcodec/get_bits.h:289:5: 
  287.     LAST_SKIP_BITS(re, s, n);
  288.     CLOSE_READER(re, s);
  289.     return tmp;
           ^
  290. }
  291. 

libavcodec/get_bits.h:290:1: return from a call to get_bits
  288.     CLOSE_READER(re, s);
  289.     return tmp;
  290. }
       ^
  291. 
  292. /**

libavformat/oggparseflac.c:49:12: Taking false branch
47.         uint8_t *streaminfo_start = os->buf + os->pstart + 5 + 4 + 4 + 4;
48.         skip_bits_long(&gb, 4*8); /* "FLAC" */
49.         if(get_bits(&gb, 8) != 1) /* unsupported major version */
               ^
50.             return -1;
51.         skip_bits_long(&gb, 8 + 16); /* minor version + header count */

libavformat/oggparseflac.c:51:9: 
49.         if(get_bits(&gb, 8) != 1) /* unsupported major version */
50.             return -1;
51.         skip_bits_long(&gb, 8 + 16); /* minor version + header count */
            ^
52.         skip_bits_long(&gb, 4*8); /* "fLaC" */
53. 

libavcodec/get_bits.h:173:1: start of procedure skip_bits_long()
  171. }
  172. 
  173. static inline void skip_bits_long(GetBitContext *s, int n){
       ^
  174.     s->index += n;
  175. }

libavcodec/get_bits.h:174:5: 
  172. 
  173. static inline void skip_bits_long(GetBitContext *s, int n){
  174.     s->index += n;
           ^
  175. }
  176. 

libavcodec/get_bits.h:175:1: return from a call to skip_bits_long
  173. static inline void skip_bits_long(GetBitContext *s, int n){
  174.     s->index += n;
  175. }
       ^
  176. 
  177. #elif defined A32_BITSTREAM_READER

libavformat/oggparseflac.c:52:9: 
50.             return -1;
51.         skip_bits_long(&gb, 8 + 16); /* minor version + header count */
52.         skip_bits_long(&gb, 4*8); /* "fLaC" */
            ^
53. 
54.         /* METADATA_BLOCK_HEADER */

libavcodec/get_bits.h:173:1: start of procedure skip_bits_long()
  171. }
  172. 
  173. static inline void skip_bits_long(GetBitContext *s, int n){
       ^
  174.     s->index += n;
  175. }

libavcodec/get_bits.h:174:5: 
  172. 
  173. static inline void skip_bits_long(GetBitContext *s, int n){
  174.     s->index += n;
           ^
  175. }
  176. 

libavcodec/get_bits.h:175:1: return from a call to skip_bits_long
  173. static inline void skip_bits_long(GetBitContext *s, int n){
  174.     s->index += n;
  175. }
       ^
  176. 
  177. #elif defined A32_BITSTREAM_READER

libavformat/oggparseflac.c:55:13: 
53. 
54.         /* METADATA_BLOCK_HEADER */
55.         if (get_bits_long(&gb, 32) != FLAC_STREAMINFO_SIZE)
                ^
56.             return -1;
57. 

libavcodec/get_bits.h:342:1: start of procedure get_bits_long()
  340.  * reads 0-32 bits.
  341.  */
  342. static inline unsigned int get_bits_long(GetBitContext *s, int n){
       ^
  343.     if (n <= MIN_CACHE_BITS) return get_bits(s, n);
  344.     else {

libavcodec/get_bits.h:343:9: Taking false branch
  341.  */
  342. static inline unsigned int get_bits_long(GetBitContext *s, int n){
  343.     if (n <= MIN_CACHE_BITS) return get_bits(s, n);
               ^
  344.     else {
  345. #ifdef ALT_BITSTREAM_READER_LE

libavcodec/get_bits.h:349:9: 
  347.         return ret | (get_bits(s, n-16) << 16);
  348. #else
  349.         int ret = get_bits(s, 16) << (n-16);
               ^
  350.         return ret | get_bits(s, n-16);
  351. #endif

libavcodec/get_bits.h:282:1: start of procedure get_bits()
    280.  * Read 1-25 bits.
    281.  */
    282. static inline unsigned int get_bits(GetBitContext *s, int n){
         ^
    283.     register int tmp;
    284.     OPEN_READER(re, s);

libavcodec/get_bits.h:284:5: 
    282. static inline unsigned int get_bits(GetBitContext *s, int n){
    283.     register int tmp;
    284.     OPEN_READER(re, s);
             ^
    285.     UPDATE_CACHE(re, s);
    286.     tmp = SHOW_UBITS(re, s, n);

libavcodec/get_bits.h:285:5: 
    283.     register int tmp;
    284.     OPEN_READER(re, s);
    285.     UPDATE_CACHE(re, s);
             ^
    286.     tmp = SHOW_UBITS(re, s, n);
    287.     LAST_SKIP_BITS(re, s, n);

libavutil/bswap.h:66:1: start of procedure av_bswap32()
      64. 
      65. #ifndef av_bswap32
      66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
          ^
      67. {
      68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);

libavutil/bswap.h:68:5: 
      66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
      67. {
      68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
              ^
      69.     x= (x>>16) | (x<<16);
      70.     return x;

libavutil/bswap.h:69:5: 
      67. {
      68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
      69.     x= (x>>16) | (x<<16);
              ^
      70.     return x;
      71. }

libavutil/bswap.h:70:5: 
      68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
      69.     x= (x>>16) | (x<<16);
      70.     return x;
              ^
      71. }
      72. #endif

libavutil/bswap.h:71:1: return from a call to av_bswap32
      69.     x= (x>>16) | (x<<16);
      70.     return x;
      71. }
          ^
      72. #endif
      73. 

libavcodec/get_bits.h:286:5: 
    284.     OPEN_READER(re, s);
    285.     UPDATE_CACHE(re, s);
    286.     tmp = SHOW_UBITS(re, s, n);
             ^
    287.     LAST_SKIP_BITS(re, s, n);
    288.     CLOSE_READER(re, s);

libavcodec/get_bits.h:287:5: 
    285.     UPDATE_CACHE(re, s);
    286.     tmp = SHOW_UBITS(re, s, n);
    287.     LAST_SKIP_BITS(re, s, n);
             ^
    288.     CLOSE_READER(re, s);
    289.     return tmp;

libavcodec/get_bits.h:288:5: 
    286.     tmp = SHOW_UBITS(re, s, n);
    287.     LAST_SKIP_BITS(re, s, n);
    288.     CLOSE_READER(re, s);
             ^
    289.     return tmp;
    290. }

libavcodec/get_bits.h:289:5: 
    287.     LAST_SKIP_BITS(re, s, n);
    288.     CLOSE_READER(re, s);
    289.     return tmp;
             ^
    290. }
    291. 

libavcodec/get_bits.h:290:1: return from a call to get_bits
    288.     CLOSE_READER(re, s);
    289.     return tmp;
    290. }
         ^
    291. 
    292. /**

libavcodec/get_bits.h:350:9: 
  348. #else
  349.         int ret = get_bits(s, 16) << (n-16);
  350.         return ret | get_bits(s, n-16);
               ^
  351. #endif
  352.     }

libavcodec/get_bits.h:282:1: start of procedure get_bits()
    280.  * Read 1-25 bits.
    281.  */
    282. static inline unsigned int get_bits(GetBitContext *s, int n){
         ^
    283.     register int tmp;
    284.     OPEN_READER(re, s);

libavcodec/get_bits.h:284:5: 
    282. static inline unsigned int get_bits(GetBitContext *s, int n){
    283.     register int tmp;
    284.     OPEN_READER(re, s);
             ^
    285.     UPDATE_CACHE(re, s);
    286.     tmp = SHOW_UBITS(re, s, n);

libavcodec/get_bits.h:285:5: 
    283.     register int tmp;
    284.     OPEN_READER(re, s);
    285.     UPDATE_CACHE(re, s);
             ^
    286.     tmp = SHOW_UBITS(re, s, n);
    287.     LAST_SKIP_BITS(re, s, n);

libavutil/bswap.h:66:1: start of procedure av_bswap32()
      64. 
      65. #ifndef av_bswap32
      66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
          ^
      67. {
      68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);

libavutil/bswap.h:68:5: 
      66. static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
      67. {
      68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
              ^
      69.     x= (x>>16) | (x<<16);
      70.     return x;

libavutil/bswap.h:69:5: 
      67. {
      68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
      69.     x= (x>>16) | (x<<16);
              ^
      70.     return x;
      71. }

libavutil/bswap.h:70:5: 
      68.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
      69.     x= (x>>16) | (x<<16);
      70.     return x;
              ^
      71. }
      72. #endif

libavutil/bswap.h:71:1: return from a call to av_bswap32
      69.     x= (x>>16) | (x<<16);
      70.     return x;
      71. }
          ^
      72. #endif
      73. 

libavcodec/get_bits.h:286:5: 
    284.     OPEN_READER(re, s);
    285.     UPDATE_CACHE(re, s);
    286.     tmp = SHOW_UBITS(re, s, n);
             ^
    287.     LAST_SKIP_BITS(re, s, n);
    288.     CLOSE_READER(re, s);

libavcodec/get_bits.h:287:5: 
    285.     UPDATE_CACHE(re, s);
    286.     tmp = SHOW_UBITS(re, s, n);
    287.     LAST_SKIP_BITS(re, s, n);
             ^
    288.     CLOSE_READER(re, s);
    289.     return tmp;

libavcodec/get_bits.h:288:5: 
    286.     tmp = SHOW_UBITS(re, s, n);
    287.     LAST_SKIP_BITS(re, s, n);
    288.     CLOSE_READER(re, s);
             ^
    289.     return tmp;
    290. }

libavcodec/get_bits.h:289:5: 
    287.     LAST_SKIP_BITS(re, s, n);
    288.     CLOSE_READER(re, s);
    289.     return tmp;
             ^
    290. }
    291. 

libavcodec/get_bits.h:290:1: return from a call to get_bits
    288.     CLOSE_READER(re, s);
    289.     return tmp;
    290. }
         ^
    291. 
    292. /**

libavcodec/get_bits.h:353:1: return from a call to get_bits_long
  351. #endif
  352.     }
  353. }
       ^
  354. 
  355. /**

libavformat/oggparseflac.c:55:13: Taking false branch
53. 
54.         /* METADATA_BLOCK_HEADER */
55.         if (get_bits_long(&gb, 32) != FLAC_STREAMINFO_SIZE)
                ^
56.             return -1;
57. 

libavformat/oggparseflac.c:58:9: Skipping ff_flac_parse_streaminfo(): empty list of specs
56.             return -1;
57. 
58.         ff_flac_parse_streaminfo(st->codec, &si, streaminfo_start);
            ^
59. 
60.         st->codec->codec_type = AVMEDIA_TYPE_AUDIO;

libavformat/oggparseflac.c:60:9: 
58.         ff_flac_parse_streaminfo(st->codec, &si, streaminfo_start);
59. 
60.         st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
            ^
61.         st->codec->codec_id = CODEC_ID_FLAC;
62. 

libavformat/oggparseflac.c:61:9: 
59. 
60.         st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
61.         st->codec->codec_id = CODEC_ID_FLAC;
            ^
62. 
63.         st->codec->extradata =

libavformat/oggparseflac.c:63:9: 
61.         st->codec->codec_id = CODEC_ID_FLAC;
62. 
63.         st->codec->extradata =
            ^
64.             av_malloc(FLAC_STREAMINFO_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
65.         memcpy(st->codec->extradata, streaminfo_start, FLAC_STREAMINFO_SIZE);

libavutil/mem.c:64:1: start of procedure av_malloc()
  62.    linker will do it automatically. */
  63. 
  64. void *av_malloc(size_t size)
      ^
  65. {
  66.     void *ptr = NULL;

libavutil/mem.c:66:5: 
  64. void *av_malloc(size_t size)
  65. {
  66.     void *ptr = NULL;
          ^
  67. #if CONFIG_MEMALIGN_HACK
  68.     long diff;

libavutil/mem.c:72:8: Taking false branch
  70. 
  71.     /* let's disallow possible ambiguous cases */
  72.     if(size > (INT_MAX-32) )
             ^
  73.         return NULL;
  74. 

libavutil/mem.c:83:9: Taking true branch
  81.     ((char*)ptr)[-1]= diff;
  82. #elif HAVE_POSIX_MEMALIGN
  83.     if (posix_memalign(&ptr,32,size))
              ^
  84.         ptr = NULL;
  85. #elif HAVE_MEMALIGN

libavutil/mem.c:84:9: 
  82. #elif HAVE_POSIX_MEMALIGN
  83.     if (posix_memalign(&ptr,32,size))
  84.         ptr = NULL;
              ^
  85. #elif HAVE_MEMALIGN
  86.     ptr = memalign(32,size);

libavutil/mem.c:114:5: 
  112.     ptr = malloc(size);
  113. #endif
  114.     return ptr;
           ^
  115. }
  116. 

libavutil/mem.c:115:1: return from a call to av_malloc
  113. #endif
  114.     return ptr;
  115. }
       ^
  116. 
  117. void *av_realloc(void *ptr, size_t size)

libavformat/oggparseflac.c:65:9: 
63.         st->codec->extradata =
64.             av_malloc(FLAC_STREAMINFO_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
65.         memcpy(st->codec->extradata, streaminfo_start, FLAC_STREAMINFO_SIZE);
            ^
66.         st->codec->extradata_size = FLAC_STREAMINFO_SIZE;
67. 

static int
flac_header (AVFormatContext * s, int idx)
{
    struct ogg *ogg = s->priv_data;
    struct ogg_stream *os = ogg->streams + idx;
    AVStream *st = s->streams[idx];
    GetBitContext gb;
    FLACStreaminfo si;
    int mdt;
    if (os->buf[os->pstart] == 0xff)
        return 0;
    init_get_bits(&gb, os->buf + os->pstart, os->psize*8);
    skip_bits1(&gb);
    mdt = get_bits(&gb, 7);
    if (mdt == OGG_FLAC_METADATA_TYPE_STREAMINFO) {
        uint8_t *streaminfo_start = os->buf + os->pstart + 5 + 4 + 4 + 4;
        skip_bits_long(&gb, 4*8);
        if(get_bits(&gb, 8) != 1)
            return -1;
        skip_bits_long(&gb, 8 + 16);
        skip_bits_long(&gb, 4*8);
        if (get_bits_long(&gb, 32) != FLAC_STREAMINFO_SIZE)
            return -1;
        ff_flac_parse_streaminfo(st->codec, &si, streaminfo_start);
        st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
        st->codec->codec_id = CODEC_ID_FLAC;
        st->codec->extradata =
            av_malloc(FLAC_STREAMINFO_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
        memcpy(st->codec->extradata, streaminfo_start, FLAC_STREAMINFO_SIZE);
        st->codec->extradata_size = FLAC_STREAMINFO_SIZE;
        av_set_pts_info(st, 64, 1, st->codec->sample_rate);
    } else if (mdt == FLAC_METADATA_TYPE_VORBIS_COMMENT) {
        ff_vorbis_comment (s, &st->metadata, os->buf + os->pstart + 4, os->psize - 4);
    }
    return 1;
}
['static int\nflac_header (AVFormatContext * s, int idx)\n{\n    struct ogg *ogg = s->priv_data;\n    struct ogg_stream *os = ogg->streams + idx;\n    AVStream *st = s->streams[idx];\n    GetBitContext gb;\n    FLACStreaminfo si;\n    int mdt;\n    if (os->buf[os->pstart] == 0xff)\n        return 0;\n    init_get_bits(&gb, os->buf + os->pstart, os->psize*8);\n    skip_bits1(&gb);\n    mdt = get_bits(&gb, 7);\n    if (mdt == OGG_FLAC_METADATA_TYPE_STREAMINFO) {\n        uint8_t *streaminfo_start = os->buf + os->pstart + 5 + 4 + 4 + 4;\n        skip_bits_long(&gb, 4*8);\n        if(get_bits(&gb, 8) != 1)\n            return -1;\n        skip_bits_long(&gb, 8 + 16);\n        skip_bits_long(&gb, 4*8);\n        if (get_bits_long(&gb, 32) != FLAC_STREAMINFO_SIZE)\n            return -1;\n        ff_flac_parse_streaminfo(st->codec, &si, streaminfo_start);\n        st->codec->codec_type = AVMEDIA_TYPE_AUDIO;\n        st->codec->codec_id = CODEC_ID_FLAC;\n        st->codec->extradata =\n            av_malloc(FLAC_STREAMINFO_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);\n        memcpy(st->codec->extradata, streaminfo_start, FLAC_STREAMINFO_SIZE);\n        st->codec->extradata_size = FLAC_STREAMINFO_SIZE;\n        av_set_pts_info(st, 64, 1, st->codec->sample_rate);\n    } else if (mdt == FLAC_METADATA_TYPE_VORBIS_COMMENT) {\n        ff_vorbis_comment (s, &st->metadata, os->buf + os->pstart + 4, os->psize - 4);\n    }\n    return 1;\n}', 'static inline void init_get_bits(GetBitContext *s,\n                   const uint8_t *buffer, int bit_size)\n{\n    int buffer_size = (bit_size+7)>>3;\n    if (buffer_size < 0 || bit_size < 0) {\n        buffer_size = bit_size = 0;\n        buffer = NULL;\n    }\n    s->buffer       = buffer;\n    s->size_in_bits = bit_size;\n    s->buffer_end   = buffer + buffer_size;\n#ifdef ALT_BITSTREAM_READER\n    s->index        = 0;\n#elif defined A32_BITSTREAM_READER\n    s->buffer_ptr   = (uint32_t*)((intptr_t)buffer & ~3);\n    s->bit_count    = 32 +     8*((intptr_t)buffer &  3);\n    skip_bits_long(s, 0);\n#endif\n}', 'static inline void skip_bits1(GetBitContext *s){\n    skip_bits(s, 1);\n}', 'static inline void skip_bits(GetBitContext *s, int n){\n    OPEN_READER(re, s);\n    UPDATE_CACHE(re, s);\n    LAST_SKIP_BITS(re, s, n);\n    CLOSE_READER(re, s);\n}', 'static av_always_inline av_const uint32_t av_bswap32(uint32_t x)\n{\n    x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);\n    x= (x>>16) | (x<<16);\n    return x;\n}', 'static inline unsigned int get_bits(GetBitContext *s, int n){\n    register int tmp;\n    OPEN_READER(re, s);\n    UPDATE_CACHE(re, s);\n    tmp = SHOW_UBITS(re, s, n);\n    LAST_SKIP_BITS(re, s, n);\n    CLOSE_READER(re, s);\n    return tmp;\n}', 'static inline void skip_bits_long(GetBitContext *s, int n){\n    s->index += n;\n}', 'static inline unsigned int get_bits_long(GetBitContext *s, int n){\n    if (n <= MIN_CACHE_BITS) return get_bits(s, n);\n    else {\n#ifdef ALT_BITSTREAM_READER_LE\n        int ret = get_bits(s, 16);\n        return ret | (get_bits(s, n-16) << 16);\n#else\n        int ret = get_bits(s, 16) << (n-16);\n        return ret | get_bits(s, n-16);\n#endif\n    }\n}', 'void *av_malloc(size_t size)\n{\n    void *ptr = NULL;\n#if CONFIG_MEMALIGN_HACK\n    long diff;\n#endif\n    if(size > (INT_MAX-32) )\n        return NULL;\n#if CONFIG_MEMALIGN_HACK\n    ptr = malloc(size+32);\n    if(!ptr)\n        return ptr;\n    diff= ((-(long)ptr - 1)&31) + 1;\n    ptr = (char*)ptr + diff;\n    ((char*)ptr)[-1]= diff;\n#elif HAVE_POSIX_MEMALIGN\n    if (posix_memalign(&ptr,32,size))\n        ptr = NULL;\n#elif HAVE_MEMALIGN\n    ptr = memalign(32,size);\n#else\n    ptr = malloc(size);\n#endif\n    return ptr;\n}']