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

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

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

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

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

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)

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

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

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

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

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

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

libavutil/buffer.c:194:1: return from a call to av_buffer_realloc
192.     buf->buffer->size = buf->size = size;
193.     return 0;
194. }
     ^
195. 
196. AVBufferPool *av_buffer_pool_init(int size, AVBufferRef* (*alloc)(int size))
