diff --git a/libavcodec/roqvideoenc.c b/libavcodec/roqvideoenc.c index 89879e81b3..157719a4dc 100644 --- a/libavcodec/roqvideoenc.c +++ b/libavcodec/roqvideoenc.c @@ -960,9 +960,6 @@ static int roq_encode_video(RoqContext *enc) reconstruct_and_encode_image(enc, tempData, enc->width, enc->height, enc->width*enc->height/64); - av_frame_unref(enc->avctx->coded_frame); - av_frame_ref(enc->avctx->coded_frame, enc->current_frame); - /* Rotate frame history */ FFSWAP(AVFrame *, enc->current_frame, enc->last_frame); FFSWAP(motion_vect *, enc->last_motion4, enc->this_motion4);