libavformat/utils.c:620: error: Memory Leak
  memory dynamically allocated by call to `av_realloc()` at line 605, column 23 is not reachable after line 620, column 13.

libavformat/utils.c:597:1: start of procedure probe_codec()
595. /*******************************************************/
596. 
597. static void probe_codec(AVFormatContext *s, AVStream *st, const AVPacket *pkt)
     ^
598. {
599.     if(st->codec->codec_id == AV_CODEC_ID_PROBE){

libavformat/utils.c:599:8: Taking true branch
597. static void probe_codec(AVFormatContext *s, AVStream *st, const AVPacket *pkt)
598. {
599.     if(st->codec->codec_id == AV_CODEC_ID_PROBE){
            ^
600.         AVProbeData *pd = &st->probe_data;
601.         av_log(s, AV_LOG_DEBUG, "probing stream %d\n", st->index);

libavformat/utils.c:600:9: 
598. {
599.     if(st->codec->codec_id == AV_CODEC_ID_PROBE){
600.         AVProbeData *pd = &st->probe_data;
             ^
601.         av_log(s, AV_LOG_DEBUG, "probing stream %d\n", st->index);
602.         --st->probe_packets;

libavformat/utils.c:601:9: Skipping av_log(): empty list of specs
599.     if(st->codec->codec_id == AV_CODEC_ID_PROBE){
600.         AVProbeData *pd = &st->probe_data;
601.         av_log(s, AV_LOG_DEBUG, "probing stream %d\n", st->index);
             ^
602.         --st->probe_packets;
603. 

libavformat/utils.c:602:9: 
600.         AVProbeData *pd = &st->probe_data;
601.         av_log(s, AV_LOG_DEBUG, "probing stream %d\n", st->index);
602.         --st->probe_packets;
             ^
603. 
604.         if (pkt) {

libavformat/utils.c:604:13: Taking true branch
602.         --st->probe_packets;
603. 
604.         if (pkt) {
                 ^
605.             pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);
606.             memcpy(pd->buf+pd->buf_size, pkt->data, pkt->size);

libavformat/utils.c:605:13: 
603. 
604.         if (pkt) {
605.             pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);
                 ^
606.             memcpy(pd->buf+pd->buf_size, pkt->data, pkt->size);
607.             pd->buf_size += pkt->size;

libavutil/mem.c:116:1: start of procedure av_realloc()
  114. }
  115. 
  116. void *av_realloc(void *ptr, size_t size)
       ^
  117. {
  118. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:123:9: Taking false branch
  121. 
  122.     /* let's disallow possible ambiguous cases */
  123.     if (size > (INT_MAX - 16))
               ^
  124.         return NULL;
  125. 

libavutil/mem.c:135:5: 
  133.     return _aligned_realloc(ptr, size, 32);
  134. #else
  135.     return realloc(ptr, size);
           ^
  136. #endif
  137. }

libavutil/mem.c:137:1: return from a call to av_realloc
  135.     return realloc(ptr, size);
  136. #endif
  137. }
       ^
  138. 
  139. void av_free(void *ptr)

libavformat/utils.c:606:13: 
604.         if (pkt) {
605.             pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);
606.             memcpy(pd->buf+pd->buf_size, pkt->data, pkt->size);
                 ^
607.             pd->buf_size += pkt->size;
608.             memset(pd->buf+pd->buf_size, 0, AVPROBE_PADDING_SIZE);

libavformat/utils.c:607:13: 
605.             pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);
606.             memcpy(pd->buf+pd->buf_size, pkt->data, pkt->size);
607.             pd->buf_size += pkt->size;
                 ^
608.             memset(pd->buf+pd->buf_size, 0, AVPROBE_PADDING_SIZE);
609.         } else {

libavformat/utils.c:608:13: 
606.             memcpy(pd->buf+pd->buf_size, pkt->data, pkt->size);
607.             pd->buf_size += pkt->size;
608.             memset(pd->buf+pd->buf_size, 0, AVPROBE_PADDING_SIZE);
                 ^
609.         } else {
610.             st->probe_packets = 0;

libavformat/utils.c:618:14: Taking false branch
616.         }
617. 
618.         if (!st->probe_packets ||
                  ^
619.             av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) {
620.             set_codec_from_probe_data(s, st, pd, st->probe_packets > 0 ? AVPROBE_SCORE_MAX/4 : 0);

libavformat/utils.c:619:13: Taking true branch
617. 
618.         if (!st->probe_packets ||
619.             av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) {
                 ^
620.             set_codec_from_probe_data(s, st, pd, st->probe_packets > 0 ? AVPROBE_SCORE_MAX/4 : 0);
621.             if(st->codec->codec_id != AV_CODEC_ID_PROBE){

libavformat/utils.c:620:50: Condition is false
618.         if (!st->probe_packets ||
619.             av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) {
620.             set_codec_from_probe_data(s, st, pd, st->probe_packets > 0 ? AVPROBE_SCORE_MAX/4 : 0);
                                                      ^
621.             if(st->codec->codec_id != AV_CODEC_ID_PROBE){
622.                 pd->buf_size=0;

libavformat/utils.c:620:13: Skipping set_codec_from_probe_data(): empty list of specs
618.         if (!st->probe_packets ||
619.             av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) {
620.             set_codec_from_probe_data(s, st, pd, st->probe_packets > 0 ? AVPROBE_SCORE_MAX/4 : 0);
                 ^
621.             if(st->codec->codec_id != AV_CODEC_ID_PROBE){
622.                 pd->buf_size=0;
