Applying: avformat: remove unneded avio_flush() calls before calling avio_close_dyn_buf()