Commit cb678cc2 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/svq1enc: fix frame rotation code

Fixes Ticket2747
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d1c96b28
......@@ -557,9 +557,9 @@ static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
s->scratchbuf = av_malloc(s->current_picture.linesize[0] * 16 * 2);
}
temp = s->current_picture;
s->current_picture = s->last_picture;
s->last_picture = temp;
av_frame_move_ref(&temp, &s->current_picture);
av_frame_move_ref(&s->current_picture, &s->last_picture);
av_frame_move_ref(&s->last_picture, &temp);
init_put_bits(&s->pb, pkt->data, pkt->size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment