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

libavformat/utils.c:569:1: start of procedure probe_codec()
567. /*******************************************************/
568. 
569. static void probe_codec(AVFormatContext *s, AVStream *st, const AVPacket *pkt)
     ^
570. {
571.     if(st->codec->codec_id == AV_CODEC_ID_PROBE){

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

libavformat/utils.c:572:9: 
570. {
571.     if(st->codec->codec_id == AV_CODEC_ID_PROBE){
572.         AVProbeData *pd = &st->probe_data;
             ^
573.         av_log(s, AV_LOG_DEBUG, "probing stream %d\n", st->index);
574.         --st->probe_packets;

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

libavformat/utils.c:574:9: 
572.         AVProbeData *pd = &st->probe_data;
573.         av_log(s, AV_LOG_DEBUG, "probing stream %d\n", st->index);
574.         --st->probe_packets;
             ^
575. 
576.         if (pkt) {

libavformat/utils.c:576:13: Taking true branch
574.         --st->probe_packets;
575. 
576.         if (pkt) {
                 ^
577.             pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);
578.             memcpy(pd->buf+pd->buf_size, pkt->data, pkt->size);

libavformat/utils.c:577:13: 
575. 
576.         if (pkt) {
577.             pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);
                 ^
578.             memcpy(pd->buf+pd->buf_size, pkt->data, pkt->size);
579.             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:578:13: 
576.         if (pkt) {
577.             pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);
578.             memcpy(pd->buf+pd->buf_size, pkt->data, pkt->size);
                 ^
579.             pd->buf_size += pkt->size;
580.             memset(pd->buf+pd->buf_size, 0, AVPROBE_PADDING_SIZE);

libavformat/utils.c:579:13: 
577.             pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);
578.             memcpy(pd->buf+pd->buf_size, pkt->data, pkt->size);
579.             pd->buf_size += pkt->size;
                 ^
580.             memset(pd->buf+pd->buf_size, 0, AVPROBE_PADDING_SIZE);
581.         } else {

libavformat/utils.c:580:13: 
578.             memcpy(pd->buf+pd->buf_size, pkt->data, pkt->size);
579.             pd->buf_size += pkt->size;
580.             memset(pd->buf+pd->buf_size, 0, AVPROBE_PADDING_SIZE);
                 ^
581.         } else {
582.             st->probe_packets = 0;

libavformat/utils.c:590:14: Taking false branch
588.         }
589. 
590.         if (!st->probe_packets ||
                  ^
591.             av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) {
592.             set_codec_from_probe_data(s, st, pd, st->probe_packets > 0 ? AVPROBE_SCORE_MAX/4 : 0);

libavformat/utils.c:591:13: Taking true branch
589. 
590.         if (!st->probe_packets ||
591.             av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) {
                 ^
592.             set_codec_from_probe_data(s, st, pd, st->probe_packets > 0 ? AVPROBE_SCORE_MAX/4 : 0);
593.             if(st->codec->codec_id != AV_CODEC_ID_PROBE){

libavformat/utils.c:592:50: Condition is false
590.         if (!st->probe_packets ||
591.             av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) {
592.             set_codec_from_probe_data(s, st, pd, st->probe_packets > 0 ? AVPROBE_SCORE_MAX/4 : 0);
                                                      ^
593.             if(st->codec->codec_id != AV_CODEC_ID_PROBE){
594.                 pd->buf_size=0;

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