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

libavformat/utils.c:564:1: start of procedure probe_codec()
562. /*******************************************************/
563. 
564. static void probe_codec(AVFormatContext *s, AVStream *st, const AVPacket *pkt)
     ^
565. {
566.     if(st->codec->codec_id == AV_CODEC_ID_PROBE){

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

libavformat/utils.c:567:9: 
565. {
566.     if(st->codec->codec_id == AV_CODEC_ID_PROBE){
567.         AVProbeData *pd = &st->probe_data;
             ^
568.         av_log(s, AV_LOG_DEBUG, "probing stream %d\n", st->index);
569.         --st->probe_packets;

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

libavformat/utils.c:569:9: 
567.         AVProbeData *pd = &st->probe_data;
568.         av_log(s, AV_LOG_DEBUG, "probing stream %d\n", st->index);
569.         --st->probe_packets;
             ^
570. 
571.         if (pkt) {

libavformat/utils.c:571:13: Taking true branch
569.         --st->probe_packets;
570. 
571.         if (pkt) {
                 ^
572.             pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);
573.             memcpy(pd->buf+pd->buf_size, pkt->data, pkt->size);

libavformat/utils.c:572:13: 
570. 
571.         if (pkt) {
572.             pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);
                 ^
573.             memcpy(pd->buf+pd->buf_size, pkt->data, pkt->size);
574.             pd->buf_size += pkt->size;

libavutil/mem.c:121:1: start of procedure av_realloc()
  119. }
  120. 
  121. void *av_realloc(void *ptr, size_t size)
       ^
  122. {
  123. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:128:9: Taking false branch
  126. 
  127.     /* let's disallow possible ambiguous cases */
  128.     if (size > (INT_MAX - 16))
               ^
  129.         return NULL;
  130. 

libavutil/mem.c:140:5: 
  138.     return _aligned_realloc(ptr, size, 32);
  139. #else
  140.     return realloc(ptr, size);
           ^
  141. #endif
  142. }

libavutil/mem.c:142:1: return from a call to av_realloc
  140.     return realloc(ptr, size);
  141. #endif
  142. }
       ^
  143. 
  144. void av_free(void *ptr)

libavformat/utils.c:573:13: 
571.         if (pkt) {
572.             pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);
573.             memcpy(pd->buf+pd->buf_size, pkt->data, pkt->size);
                 ^
574.             pd->buf_size += pkt->size;
575.             memset(pd->buf+pd->buf_size, 0, AVPROBE_PADDING_SIZE);

libavformat/utils.c:574:13: 
572.             pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);
573.             memcpy(pd->buf+pd->buf_size, pkt->data, pkt->size);
574.             pd->buf_size += pkt->size;
                 ^
575.             memset(pd->buf+pd->buf_size, 0, AVPROBE_PADDING_SIZE);
576.         } else {

libavformat/utils.c:575:13: 
573.             memcpy(pd->buf+pd->buf_size, pkt->data, pkt->size);
574.             pd->buf_size += pkt->size;
575.             memset(pd->buf+pd->buf_size, 0, AVPROBE_PADDING_SIZE);
                 ^
576.         } else {
577.             st->probe_packets = 0;

libavformat/utils.c:585:14: Taking false branch
583.         }
584. 
585.         if (!st->probe_packets ||
                  ^
586.             av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) {
587.             set_codec_from_probe_data(s, st, pd, st->probe_packets > 0 ? AVPROBE_SCORE_MAX/4 : 0);

libavformat/utils.c:586:13: Taking true branch
584. 
585.         if (!st->probe_packets ||
586.             av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) {
                 ^
587.             set_codec_from_probe_data(s, st, pd, st->probe_packets > 0 ? AVPROBE_SCORE_MAX/4 : 0);
588.             if(st->codec->codec_id != AV_CODEC_ID_PROBE){

libavformat/utils.c:587:50: Condition is false
585.         if (!st->probe_packets ||
586.             av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) {
587.             set_codec_from_probe_data(s, st, pd, st->probe_packets > 0 ? AVPROBE_SCORE_MAX/4 : 0);
                                                      ^
588.             if(st->codec->codec_id != AV_CODEC_ID_PROBE){
589.                 pd->buf_size=0;

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