Add av_fifo_reset function to completely reset fifo state, which makes