libavutil/buffer.c:195: error: Memory Leak
  memory dynamically allocated by call to `av_realloc()` at line 155, column 25 is not reachable after line 195, column 1.

libavutil/buffer.c:147:1: start of procedure av_buffer_realloc()
145. }
146. 
147. int av_buffer_realloc(AVBufferRef **pbuf, int size)
     ^
148. {
149.     AVBufferRef *buf = *pbuf;

libavutil/buffer.c:149:5: 
147. int av_buffer_realloc(AVBufferRef **pbuf, int size)
148. {
149.     AVBufferRef *buf = *pbuf;
         ^
150.     uint8_t *tmp;
151. 

libavutil/buffer.c:152:10: Taking true branch
150.     uint8_t *tmp;
151. 
152.     if (!buf) {
              ^
153.         /* allocate a new buffer with av_realloc(), so it will be reallocatable
154.          * later */

libavutil/buffer.c:155:9: 
153.         /* allocate a new buffer with av_realloc(), so it will be reallocatable
154.          * later */
155.         uint8_t *data = av_realloc(NULL, size);
             ^
156.         if (!data)
157.             return AVERROR(ENOMEM);

libavutil/mem.c:107:1: start of procedure av_realloc()
  105. }
  106. 
  107. void *av_realloc(void *ptr, size_t size)
       ^
  108. {
  109.     /* let's disallow possibly ambiguous cases */

libavutil/mem.c:110:9: Taking false branch
  108. {
  109.     /* let's disallow possibly ambiguous cases */
  110.     if (size > (INT_MAX - 16))
               ^
  111.         return NULL;
  112. 

libavutil/mem.c:116:5: 
  114.     return _aligned_realloc(ptr, size, 32);
  115. #else
  116.     return realloc(ptr, size);
           ^
  117. #endif
  118. }

libavutil/mem.c:118:1: return from a call to av_realloc
  116.     return realloc(ptr, size);
  117. #endif
  118. }
       ^
  119. 
  120. int av_reallocp(void *ptr, size_t size)

libavutil/buffer.c:156:14: Taking false branch
154.          * later */
155.         uint8_t *data = av_realloc(NULL, size);
156.         if (!data)
                  ^
157.             return AVERROR(ENOMEM);
158. 

libavutil/buffer.c:159:9: Skipping av_buffer_create(): empty list of specs
157.             return AVERROR(ENOMEM);
158. 
159.         buf = av_buffer_create(data, size, av_buffer_default_free, NULL, 0);
             ^
160.         if (!buf) {
161.             av_freep(&data);

libavutil/buffer.c:160:14: Taking false branch
158. 
159.         buf = av_buffer_create(data, size, av_buffer_default_free, NULL, 0);
160.         if (!buf) {
                  ^
161.             av_freep(&data);
162.             return AVERROR(ENOMEM);

libavutil/buffer.c:165:9: 
163.         }
164. 
165.         buf->buffer->flags |= BUFFER_FLAG_REALLOCATABLE;
             ^
166.         *pbuf = buf;
167. 

libavutil/buffer.c:166:9: 
164. 
165.         buf->buffer->flags |= BUFFER_FLAG_REALLOCATABLE;
166.         *pbuf = buf;
             ^
167. 
168.         return 0;

libavutil/buffer.c:168:9: 
166.         *pbuf = buf;
167. 
168.         return 0;
             ^
169.     } else if (buf->size == size)
170.         return 0;

libavutil/buffer.c:195:1: return from a call to av_buffer_realloc
193.     buf->buffer->size = buf->size = size;
194.     return 0;
195. }
     ^
196. 
197. AVBufferPool *av_buffer_pool_init2(int size, void *opaque,
