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

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

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

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

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

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

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

libavcodec/get_bits.h:383:1: start of procedure init_get_bits()
  381.  * responsible for checking for the buffer end yourself (take advantage of the padding)!
  382.  */
  383. static inline void init_get_bits(GetBitContext *s,
       ^
  384.                    const uint8_t *buffer, int bit_size)
  385. {

libavcodec/get_bits.h:386:5: 
  384.                    const uint8_t *buffer, int bit_size)
  385. {
  386.     int buffer_size = (bit_size+7)>>3;
           ^
  387.     if (buffer_size < 0 || bit_size < 0) {
  388.         buffer_size = bit_size = 0;

libavcodec/get_bits.h:387:9: Taking false branch
  385. {
  386.     int buffer_size = (bit_size+7)>>3;
  387.     if (buffer_size < 0 || bit_size < 0) {
               ^
  388.         buffer_size = bit_size = 0;
  389.         buffer = NULL;

libavcodec/get_bits.h:387:28: Taking false branch
  385. {
  386.     int buffer_size = (bit_size+7)>>3;
  387.     if (buffer_size < 0 || bit_size < 0) {
                                  ^
  388.         buffer_size = bit_size = 0;
  389.         buffer = NULL;

libavcodec/get_bits.h:392:5: 
  390.     }
  391. 
  392.     s->buffer       = buffer;
           ^
  393.     s->size_in_bits = bit_size;
  394.     s->buffer_end   = buffer + buffer_size;

libavcodec/get_bits.h:393:5: 
  391. 
  392.     s->buffer       = buffer;
  393.     s->size_in_bits = bit_size;
           ^
  394.     s->buffer_end   = buffer + buffer_size;
  395. #ifdef ALT_BITSTREAM_READER

libavcodec/get_bits.h:394:5: 
  392.     s->buffer       = buffer;
  393.     s->size_in_bits = bit_size;
  394.     s->buffer_end   = buffer + buffer_size;
           ^
  395. #ifdef ALT_BITSTREAM_READER
  396.     s->index        = 0;

libavcodec/get_bits.h:396:5: 
  394.     s->buffer_end   = buffer + buffer_size;
  395. #ifdef ALT_BITSTREAM_READER
  396.     s->index        = 0;
           ^
  397. #elif defined A32_BITSTREAM_READER
  398.     s->buffer_ptr   = (uint32_t*)((intptr_t)buffer & ~3);

libavcodec/get_bits.h:402:1: return from a call to init_get_bits
  400.     skip_bits_long(s, 0);
  401. #endif
  402. }
       ^
  403. 
  404. static inline void align_get_bits(GetBitContext *s)

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

libavcodec/get_bits.h:327:1: start of procedure skip_bits1()
  325. }
  326. 
  327. static inline void skip_bits1(GetBitContext *s){
       ^
  328.     skip_bits(s, 1);
  329. }

libavcodec/get_bits.h:328:5: 
  326. 
  327. static inline void skip_bits1(GetBitContext *s){
  328.     skip_bits(s, 1);
           ^
  329. }
  330. 

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

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

libavcodec/get_bits.h:298:5: 
    296.  //Note gcc seems to optimize this to s->index+=n for the ALT_READER :))
    297.     OPEN_READER(re, s);
    298.     UPDATE_CACHE(re, s);
             ^
    299.     LAST_SKIP_BITS(re, s, n);
    300.     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:299:5: 
    297.     OPEN_READER(re, s);
    298.     UPDATE_CACHE(re, s);
    299.     LAST_SKIP_BITS(re, s, n);
             ^
    300.     CLOSE_READER(re, s);
    301. }

libavcodec/get_bits.h:300:5: 
    298.     UPDATE_CACHE(re, s);
    299.     LAST_SKIP_BITS(re, s, n);
    300.     CLOSE_READER(re, s);
             ^
    301. }
    302. 

libavcodec/get_bits.h:301:1: return from a call to skip_bits
    299.     LAST_SKIP_BITS(re, s, n);
    300.     CLOSE_READER(re, s);
    301. }
         ^
    302. 
    303. static inline unsigned int get_bits1(GetBitContext *s){

libavcodec/get_bits.h:329:1: return from a call to skip_bits1
  327. static inline void skip_bits1(GetBitContext *s){
  328.     skip_bits(s, 1);
  329. }
       ^
  330. 
  331. /**

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

libavcodec/get_bits.h:274:1: start of procedure get_bits()
  272.  * Read 1-25 bits.
  273.  */
  274. static inline unsigned int get_bits(GetBitContext *s, int n){
       ^
  275.     register int tmp;
  276.     OPEN_READER(re, s);

libavcodec/get_bits.h:276:5: 
  274. static inline unsigned int get_bits(GetBitContext *s, int n){
  275.     register int tmp;
  276.     OPEN_READER(re, s);
           ^
  277.     UPDATE_CACHE(re, s);
  278.     tmp = SHOW_UBITS(re, s, n);

libavcodec/get_bits.h:277:5: 
  275.     register int tmp;
  276.     OPEN_READER(re, s);
  277.     UPDATE_CACHE(re, s);
           ^
  278.     tmp = SHOW_UBITS(re, s, n);
  279.     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:278:5: 
  276.     OPEN_READER(re, s);
  277.     UPDATE_CACHE(re, s);
  278.     tmp = SHOW_UBITS(re, s, n);
           ^
  279.     LAST_SKIP_BITS(re, s, n);
  280.     CLOSE_READER(re, s);

libavcodec/get_bits.h:279:5: 
  277.     UPDATE_CACHE(re, s);
  278.     tmp = SHOW_UBITS(re, s, n);
  279.     LAST_SKIP_BITS(re, s, n);
           ^
  280.     CLOSE_READER(re, s);
  281.     return tmp;

libavcodec/get_bits.h:280:5: 
  278.     tmp = SHOW_UBITS(re, s, n);
  279.     LAST_SKIP_BITS(re, s, n);
  280.     CLOSE_READER(re, s);
           ^
  281.     return tmp;
  282. }

libavcodec/get_bits.h:281:5: 
  279.     LAST_SKIP_BITS(re, s, n);
  280.     CLOSE_READER(re, s);
  281.     return tmp;
           ^
  282. }
  283. 

libavcodec/get_bits.h:282:1: return from a call to get_bits
  280.     CLOSE_READER(re, s);
  281.     return tmp;
  282. }
       ^
  283. 
  284. /**

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

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

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

libavcodec/get_bits.h:274:1: start of procedure get_bits()
  272.  * Read 1-25 bits.
  273.  */
  274. static inline unsigned int get_bits(GetBitContext *s, int n){
       ^
  275.     register int tmp;
  276.     OPEN_READER(re, s);

libavcodec/get_bits.h:276:5: 
  274. static inline unsigned int get_bits(GetBitContext *s, int n){
  275.     register int tmp;
  276.     OPEN_READER(re, s);
           ^
  277.     UPDATE_CACHE(re, s);
  278.     tmp = SHOW_UBITS(re, s, n);

libavcodec/get_bits.h:277:5: 
  275.     register int tmp;
  276.     OPEN_READER(re, s);
  277.     UPDATE_CACHE(re, s);
           ^
  278.     tmp = SHOW_UBITS(re, s, n);
  279.     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:278:5: 
  276.     OPEN_READER(re, s);
  277.     UPDATE_CACHE(re, s);
  278.     tmp = SHOW_UBITS(re, s, n);
           ^
  279.     LAST_SKIP_BITS(re, s, n);
  280.     CLOSE_READER(re, s);

libavcodec/get_bits.h:279:5: 
  277.     UPDATE_CACHE(re, s);
  278.     tmp = SHOW_UBITS(re, s, n);
  279.     LAST_SKIP_BITS(re, s, n);
           ^
  280.     CLOSE_READER(re, s);
  281.     return tmp;

libavcodec/get_bits.h:280:5: 
  278.     tmp = SHOW_UBITS(re, s, n);
  279.     LAST_SKIP_BITS(re, s, n);
  280.     CLOSE_READER(re, s);
           ^
  281.     return tmp;
  282. }

libavcodec/get_bits.h:281:5: 
  279.     LAST_SKIP_BITS(re, s, n);
  280.     CLOSE_READER(re, s);
  281.     return tmp;
           ^
  282. }
  283. 

libavcodec/get_bits.h:282:1: return from a call to get_bits
  280.     CLOSE_READER(re, s);
  281.     return tmp;
  282. }
       ^
  283. 
  284. /**

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

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

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:53:9: 
51.             return -1;
52.         skip_bits_long(&gb, 8 + 16); /* minor version + header count */
53.         skip_bits_long(&gb, 4*8); /* "fLaC" */
            ^
54. 
55.         /* 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:56:13: 
54. 
55.         /* METADATA_BLOCK_HEADER */
56.         if (get_bits_long(&gb, 32) != FLAC_STREAMINFO_SIZE)
                ^
57.             return -1;
58. 

libavcodec/get_bits.h:334:1: start of procedure get_bits_long()
  332.  * reads 0-32 bits.
  333.  */
  334. static inline unsigned int get_bits_long(GetBitContext *s, int n){
       ^
  335.     if (n <= MIN_CACHE_BITS) return get_bits(s, n);
  336.     else {

libavcodec/get_bits.h:335:9: Taking false branch
  333.  */
  334. static inline unsigned int get_bits_long(GetBitContext *s, int n){
  335.     if (n <= MIN_CACHE_BITS) return get_bits(s, n);
               ^
  336.     else {
  337. #ifdef ALT_BITSTREAM_READER_LE

libavcodec/get_bits.h:341:9: 
  339.         return ret | (get_bits(s, n-16) << 16);
  340. #else
  341.         int ret = get_bits(s, 16) << (n-16);
               ^
  342.         return ret | get_bits(s, n-16);
  343. #endif

libavcodec/get_bits.h:274:1: start of procedure get_bits()
    272.  * Read 1-25 bits.
    273.  */
    274. static inline unsigned int get_bits(GetBitContext *s, int n){
         ^
    275.     register int tmp;
    276.     OPEN_READER(re, s);

libavcodec/get_bits.h:276:5: 
    274. static inline unsigned int get_bits(GetBitContext *s, int n){
    275.     register int tmp;
    276.     OPEN_READER(re, s);
             ^
    277.     UPDATE_CACHE(re, s);
    278.     tmp = SHOW_UBITS(re, s, n);

libavcodec/get_bits.h:277:5: 
    275.     register int tmp;
    276.     OPEN_READER(re, s);
    277.     UPDATE_CACHE(re, s);
             ^
    278.     tmp = SHOW_UBITS(re, s, n);
    279.     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:278:5: 
    276.     OPEN_READER(re, s);
    277.     UPDATE_CACHE(re, s);
    278.     tmp = SHOW_UBITS(re, s, n);
             ^
    279.     LAST_SKIP_BITS(re, s, n);
    280.     CLOSE_READER(re, s);

libavcodec/get_bits.h:279:5: 
    277.     UPDATE_CACHE(re, s);
    278.     tmp = SHOW_UBITS(re, s, n);
    279.     LAST_SKIP_BITS(re, s, n);
             ^
    280.     CLOSE_READER(re, s);
    281.     return tmp;

libavcodec/get_bits.h:280:5: 
    278.     tmp = SHOW_UBITS(re, s, n);
    279.     LAST_SKIP_BITS(re, s, n);
    280.     CLOSE_READER(re, s);
             ^
    281.     return tmp;
    282. }

libavcodec/get_bits.h:281:5: 
    279.     LAST_SKIP_BITS(re, s, n);
    280.     CLOSE_READER(re, s);
    281.     return tmp;
             ^
    282. }
    283. 

libavcodec/get_bits.h:282:1: return from a call to get_bits
    280.     CLOSE_READER(re, s);
    281.     return tmp;
    282. }
         ^
    283. 
    284. /**

libavcodec/get_bits.h:342:9: 
  340. #else
  341.         int ret = get_bits(s, 16) << (n-16);
  342.         return ret | get_bits(s, n-16);
               ^
  343. #endif
  344.     }

libavcodec/get_bits.h:274:1: start of procedure get_bits()
    272.  * Read 1-25 bits.
    273.  */
    274. static inline unsigned int get_bits(GetBitContext *s, int n){
         ^
    275.     register int tmp;
    276.     OPEN_READER(re, s);

libavcodec/get_bits.h:276:5: 
    274. static inline unsigned int get_bits(GetBitContext *s, int n){
    275.     register int tmp;
    276.     OPEN_READER(re, s);
             ^
    277.     UPDATE_CACHE(re, s);
    278.     tmp = SHOW_UBITS(re, s, n);

libavcodec/get_bits.h:277:5: 
    275.     register int tmp;
    276.     OPEN_READER(re, s);
    277.     UPDATE_CACHE(re, s);
             ^
    278.     tmp = SHOW_UBITS(re, s, n);
    279.     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:278:5: 
    276.     OPEN_READER(re, s);
    277.     UPDATE_CACHE(re, s);
    278.     tmp = SHOW_UBITS(re, s, n);
             ^
    279.     LAST_SKIP_BITS(re, s, n);
    280.     CLOSE_READER(re, s);

libavcodec/get_bits.h:279:5: 
    277.     UPDATE_CACHE(re, s);
    278.     tmp = SHOW_UBITS(re, s, n);
    279.     LAST_SKIP_BITS(re, s, n);
             ^
    280.     CLOSE_READER(re, s);
    281.     return tmp;

libavcodec/get_bits.h:280:5: 
    278.     tmp = SHOW_UBITS(re, s, n);
    279.     LAST_SKIP_BITS(re, s, n);
    280.     CLOSE_READER(re, s);
             ^
    281.     return tmp;
    282. }

libavcodec/get_bits.h:281:5: 
    279.     LAST_SKIP_BITS(re, s, n);
    280.     CLOSE_READER(re, s);
    281.     return tmp;
             ^
    282. }
    283. 

libavcodec/get_bits.h:282:1: return from a call to get_bits
    280.     CLOSE_READER(re, s);
    281.     return tmp;
    282. }
         ^
    283. 
    284. /**

libavcodec/get_bits.h:345:1: return from a call to get_bits_long
  343. #endif
  344.     }
  345. }
       ^
  346. 
  347. /**

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

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

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

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

libavformat/oggparseflac.c:64:9: 
62.         st->codec->codec_id = CODEC_ID_FLAC;
63. 
64.         st->codec->extradata =
            ^
65.             av_malloc(FLAC_STREAMINFO_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
66.         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:66:9: 
64.         st->codec->extradata =
65.             av_malloc(FLAC_STREAMINFO_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
66.         memcpy(st->codec->extradata, streaminfo_start, FLAC_STREAMINFO_SIZE);
            ^
67.         st->codec->extradata_size = FLAC_STREAMINFO_SIZE;
68. 

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;
        avpriv_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;
        avpriv_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        avpriv_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        avpriv_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}']