libavformat/swfenc.c:482: error: Use After Free
  call to `av_fifo_free()` eventually accesses memory that was invalidated by call to `free()` on line 482 indirectly during the call to `av_fifo_free()`.

libavformat/swfenc.c:469:1: invalidation part of the trace starts here
467. }
468. 
469. static int swf_write_trailer(AVFormatContext *s)
     ^
470. {
471.     SWFContext *swf = s->priv_data;

libavformat/swfenc.c:469:1: parameter `s` of swf_write_trailer
  467. }
  468. 
  469. static int swf_write_trailer(AVFormatContext *s)
       ^
  470. {
  471.     SWFContext *swf = s->priv_data;

libavformat/swfenc.c:471:5: assigned
  469. static int swf_write_trailer(AVFormatContext *s)
  470. {
  471.     SWFContext *swf = s->priv_data;
           ^
  472.     AVIOContext *pb = s->pb;
  473.     AVCodecContext *enc, *video_enc;

libavformat/swfenc.c:482:13: when calling `av_fifo_free` here
  480.             video_enc = enc;
  481.         else
  482.             av_fifo_free(swf->audio_fifo);
                   ^
  483.     }
  484. 

libavutil/fifo.c:38:1: parameter `f` of av_fifo_free
    36. }
    37. 
    38. void av_fifo_free(AVFifoBuffer *f)
        ^
    39. {
    40.     if(f){

libavutil/fifo.c:42:9: when calling `av_free` here
    40.     if(f){
    41.         av_free(f->buffer);
    42.         av_free(f);
                ^
    43.     }
    44. }

libavutil/mem.c:143:1: parameter `ptr` of av_free
      141. }
      142. 
      143. void av_free(void *ptr)
           ^
      144. {
      145. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:151:5: was invalidated by call to `free()`
      149.     _aligned_free(ptr);
      150. #else
      151.     free(ptr);
               ^
      152. #endif
      153. }

libavformat/swfenc.c:469:1: use-after-lifetime part of the trace starts here
467. }
468. 
469. static int swf_write_trailer(AVFormatContext *s)
     ^
470. {
471.     SWFContext *swf = s->priv_data;

libavformat/swfenc.c:469:1: parameter `s` of swf_write_trailer
  467. }
  468. 
  469. static int swf_write_trailer(AVFormatContext *s)
       ^
  470. {
  471.     SWFContext *swf = s->priv_data;

libavformat/swfenc.c:471:5: assigned
  469. static int swf_write_trailer(AVFormatContext *s)
  470. {
  471.     SWFContext *swf = s->priv_data;
           ^
  472.     AVIOContext *pb = s->pb;
  473.     AVCodecContext *enc, *video_enc;

libavformat/swfenc.c:482:13: when calling `av_fifo_free` here
  480.             video_enc = enc;
  481.         else
  482.             av_fifo_free(swf->audio_fifo);
                   ^
  483.     }
  484. 

libavutil/fifo.c:38:1: parameter `f` of av_fifo_free
    36. }
    37. 
    38. void av_fifo_free(AVFifoBuffer *f)
        ^
    39. {
    40.     if(f){

libavutil/fifo.c:42:9: when calling `av_free` here
    40.     if(f){
    41.         av_free(f->buffer);
    42.         av_free(f);
                ^
    43.     }
    44. }

libavutil/mem.c:143:1: parameter `ptr` of av_free
      141. }
      142. 
      143. void av_free(void *ptr)
           ^
      144. {
      145. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:151:5: invalid access occurs here
      149.     _aligned_free(ptr);
      150. #else
      151.     free(ptr);
               ^
      152. #endif
      153. }
