Fix reffing of the AVFrame output by the decoder.