libavcodec/adpcm.c:211: error: Null Dereference
  pointer `avctx->coded_frame` last assigned on line 210 could be null and is dereferenced at line 211, column 5.

libavcodec/adpcm.c:155:1: start of procedure adpcm_encode_init()
153. 
154. #if CONFIG_ENCODERS
155. static av_cold int adpcm_encode_init(AVCodecContext *avctx)
     ^
156. {
157.     uint8_t *extradata;

libavcodec/adpcm.c:159:9: Taking false branch
157.     uint8_t *extradata;
158.     int i;
159.     if (avctx->channels > 2)
             ^
160.         return -1; /* only stereo or mono =) */
161. 

libavcodec/adpcm.c:162:8: Taking true branch
160.         return -1; /* only stereo or mono =) */
161. 
162.     if(avctx->trellis && (unsigned)avctx->trellis > 16U){
            ^
163.         av_log(avctx, AV_LOG_ERROR, "invalid trellis size\n");
164.         return -1;

libavcodec/adpcm.c:162:26: Taking false branch
160.         return -1; /* only stereo or mono =) */
161. 
162.     if(avctx->trellis && (unsigned)avctx->trellis > 16U){
                              ^
163.         av_log(avctx, AV_LOG_ERROR, "invalid trellis size\n");
164.         return -1;

libavcodec/adpcm.c:167:5: 
165.     }
166. 
167.     switch(avctx->codec->id) {
         ^
168.     case CODEC_ID_ADPCM_IMA_WAV:
169.         avctx->frame_size = (BLKSIZE - 4 * avctx->channels) * 8 / (4 * avctx->channels) + 1; /* each 16 bits sample gives one nibble */

libavcodec/adpcm.c:168:5: Switch condition is false. Skipping switch case
166. 
167.     switch(avctx->codec->id) {
168.     case CODEC_ID_ADPCM_IMA_WAV:
         ^
169.         avctx->frame_size = (BLKSIZE - 4 * avctx->channels) * 8 / (4 * avctx->channels) + 1; /* each 16 bits sample gives one nibble */
170.                                                              /* and we have 4 bytes per channel overhead */

libavcodec/adpcm.c:174:5: Switch condition is false. Skipping switch case
172.         /* seems frame_size isn't taken into account... have to buffer the samples :-( */
173.         break;
174.     case CODEC_ID_ADPCM_IMA_QT:
         ^
175.         avctx->frame_size = 64;
176.         avctx->block_align = 34 * avctx->channels;

libavcodec/adpcm.c:178:5: Switch condition is true. Entering switch case
176.         avctx->block_align = 34 * avctx->channels;
177.         break;
178.     case CODEC_ID_ADPCM_MS:
         ^
179.         avctx->frame_size = (BLKSIZE - 7 * avctx->channels) * 2 / avctx->channels + 2; /* each 16 bits sample gives one nibble */
180.                                                              /* and we have 7 bytes per channel overhead */

libavcodec/adpcm.c:179:9: 
177.         break;
178.     case CODEC_ID_ADPCM_MS:
179.         avctx->frame_size = (BLKSIZE - 7 * avctx->channels) * 2 / avctx->channels + 2; /* each 16 bits sample gives one nibble */
             ^
180.                                                              /* and we have 7 bytes per channel overhead */
181.         avctx->block_align = BLKSIZE;

libavcodec/adpcm.c:181:9: 
179.         avctx->frame_size = (BLKSIZE - 7 * avctx->channels) * 2 / avctx->channels + 2; /* each 16 bits sample gives one nibble */
180.                                                              /* and we have 7 bytes per channel overhead */
181.         avctx->block_align = BLKSIZE;
             ^
182.         avctx->extradata_size = 32;
183.         extradata = avctx->extradata = av_malloc(avctx->extradata_size);

libavcodec/adpcm.c:182:9: 
180.                                                              /* and we have 7 bytes per channel overhead */
181.         avctx->block_align = BLKSIZE;
182.         avctx->extradata_size = 32;
             ^
183.         extradata = avctx->extradata = av_malloc(avctx->extradata_size);
184.         if (!extradata)

libavcodec/adpcm.c:183:9: 
181.         avctx->block_align = BLKSIZE;
182.         avctx->extradata_size = 32;
183.         extradata = avctx->extradata = av_malloc(avctx->extradata_size);
             ^
184.         if (!extradata)
185.             return AVERROR(ENOMEM);

libavutil/mem.c:47:1: start of procedure av_malloc()
  45.    linker will do it automatically. */
  46. 
  47. void *av_malloc(unsigned int size)
      ^
  48. {
  49.     void *ptr = NULL;

libavutil/mem.c:49:5: 
  47. void *av_malloc(unsigned int size)
  48. {
  49.     void *ptr = NULL;
          ^
  50. #if CONFIG_MEMALIGN_HACK
  51.     long diff;

libavutil/mem.c:55:8: Taking false branch
  53. 
  54.     /* let's disallow possible ambiguous cases */
  55.     if(size > (INT_MAX-16) )
             ^
  56.         return NULL;
  57. 

libavutil/mem.c:66:9: Taking false branch
  64.     ((char*)ptr)[-1]= diff;
  65. #elif HAVE_POSIX_MEMALIGN
  66.     if (posix_memalign(&ptr,16,size))
              ^
  67.         ptr = NULL;
  68. #elif HAVE_MEMALIGN

libavutil/mem.c:99:5: 
   97.     ptr = malloc(size);
   98. #endif
   99.     return ptr;
           ^
  100. }
  101. 

libavutil/mem.c:100:1: return from a call to av_malloc
   98. #endif
   99.     return ptr;
  100. }
       ^
  101. 
  102. void *av_realloc(void *ptr, unsigned int size)

libavcodec/adpcm.c:184:14: Taking false branch
182.         avctx->extradata_size = 32;
183.         extradata = avctx->extradata = av_malloc(avctx->extradata_size);
184.         if (!extradata)
                  ^
185.             return AVERROR(ENOMEM);
186.         bytestream_put_le16(&extradata, avctx->frame_size);

libavcodec/adpcm.c:186:9: 
184.         if (!extradata)
185.             return AVERROR(ENOMEM);
186.         bytestream_put_le16(&extradata, avctx->frame_size);
             ^
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:187:9: 
185.             return AVERROR(ENOMEM);
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
             ^
188.         for (i = 0; i < 7; i++) {
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:188:14: 
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                  ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:188:21: Loop condition is true. Entering loop body
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                         ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:189:13: 
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
                 ^
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);
191.         }

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:190:13: 
188.         for (i = 0; i < 7; i++) {
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);
                 ^
191.         }
192.         break;

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:188:28: 
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                                ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:188:21: Loop condition is true. Entering loop body
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                         ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:189:13: 
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
                 ^
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);
191.         }

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:190:13: 
188.         for (i = 0; i < 7; i++) {
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);
                 ^
191.         }
192.         break;

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:188:28: 
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                                ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:188:21: Loop condition is true. Entering loop body
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                         ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:189:13: 
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
                 ^
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);
191.         }

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:190:13: 
188.         for (i = 0; i < 7; i++) {
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);
                 ^
191.         }
192.         break;

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:188:28: 
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                                ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:188:21: Loop condition is true. Entering loop body
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                         ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:189:13: 
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
                 ^
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);
191.         }

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:190:13: 
188.         for (i = 0; i < 7; i++) {
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);
                 ^
191.         }
192.         break;

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:188:28: 
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                                ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:188:21: Loop condition is true. Entering loop body
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                         ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:189:13: 
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
                 ^
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);
191.         }

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:190:13: 
188.         for (i = 0; i < 7; i++) {
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);
                 ^
191.         }
192.         break;

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:188:28: 
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                                ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:188:21: Loop condition is true. Entering loop body
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                         ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:189:13: 
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
                 ^
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);
191.         }

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:190:13: 
188.         for (i = 0; i < 7; i++) {
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);
                 ^
191.         }
192.         break;

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:188:28: 
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                                ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:188:21: Loop condition is true. Entering loop body
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                         ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:189:13: 
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
                 ^
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);
191.         }

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:190:13: 
188.         for (i = 0; i < 7; i++) {
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);
                 ^
191.         }
192.         break;

libavcodec/bytestream.h:47:1: start of procedure bytestream_put_le16()
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/bytestream.h:47:1: return from a call to bytestream_put_le16
  45. DEF  (le32, 4, AV_RL32, AV_WL32)
  46. DEF  (le24, 3, AV_RL24, AV_WL24)
  47. DEF  (le16, 2, AV_RL16, AV_WL16)
      ^
  48. DEF64(be64, 8, AV_RB64, AV_WB64)
  49. DEF  (be32, 4, AV_RB32, AV_WB32)

libavcodec/adpcm.c:188:28: 
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                                ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:188:21: Loop condition is false. Leaving loop
186.         bytestream_put_le16(&extradata, avctx->frame_size);
187.         bytestream_put_le16(&extradata, 7); /* wNumCoef */
188.         for (i = 0; i < 7; i++) {
                         ^
189.             bytestream_put_le16(&extradata, AdaptCoeff1[i] * 4);
190.             bytestream_put_le16(&extradata, AdaptCoeff2[i] * 4);

libavcodec/adpcm.c:210:5: 
208.     }
209. 
210.     avctx->coded_frame= avcodec_alloc_frame();
         ^
211.     avctx->coded_frame->key_frame= 1;
212. 

libavcodec/utils.c:440:1: start of procedure avcodec_alloc_frame()
  438. }
  439. 
  440. AVFrame *avcodec_alloc_frame(void){
       ^
  441.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  442. 

libavcodec/utils.c:441:5: 
  439. 
  440. AVFrame *avcodec_alloc_frame(void){
  441.     AVFrame *pic= av_malloc(sizeof(AVFrame));
           ^
  442. 
  443.     if(pic==NULL) return NULL;

libavutil/mem.c:47:1: start of procedure av_malloc()
    45.    linker will do it automatically. */
    46. 
    47. void *av_malloc(unsigned int size)
        ^
    48. {
    49.     void *ptr = NULL;

libavutil/mem.c:49:5: 
    47. void *av_malloc(unsigned int size)
    48. {
    49.     void *ptr = NULL;
            ^
    50. #if CONFIG_MEMALIGN_HACK
    51.     long diff;

libavutil/mem.c:55:8: Taking false branch
    53. 
    54.     /* let's disallow possible ambiguous cases */
    55.     if(size > (INT_MAX-16) )
               ^
    56.         return NULL;
    57. 

libavutil/mem.c:66:9: Taking false branch
    64.     ((char*)ptr)[-1]= diff;
    65. #elif HAVE_POSIX_MEMALIGN
    66.     if (posix_memalign(&ptr,16,size))
                ^
    67.         ptr = NULL;
    68. #elif HAVE_MEMALIGN

libavutil/mem.c:99:5: 
     97.     ptr = malloc(size);
     98. #endif
     99.     return ptr;
             ^
    100. }
    101. 

libavutil/mem.c:100:1: return from a call to av_malloc
     98. #endif
     99.     return ptr;
    100. }
         ^
    101. 
    102. void *av_realloc(void *ptr, unsigned int size)

libavcodec/utils.c:443:8: Taking true branch
  441.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  442. 
  443.     if(pic==NULL) return NULL;
              ^
  444. 
  445.     avcodec_get_frame_defaults(pic);

libavcodec/utils.c:443:19: 
  441.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  442. 
  443.     if(pic==NULL) return NULL;
                         ^
  444. 
  445.     avcodec_get_frame_defaults(pic);

libavcodec/utils.c:448:1: return from a call to avcodec_alloc_frame
  446. 
  447.     return pic;
  448. }
       ^
  449. 
  450. int attribute_align_arg avcodec_open(AVCodecContext *avctx, AVCodec *codec)

libavcodec/adpcm.c:211:5: 
209. 
210.     avctx->coded_frame= avcodec_alloc_frame();
211.     avctx->coded_frame->key_frame= 1;
         ^
212. 
213.     return 0;
