avcodec/svq1enc: fix frame rotation code

Fixes Ticket2747

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-07-04 22:21:27 +02:00
parent d1c96b28d7
commit cb678cc2cf
1 changed files with 3 additions and 3 deletions

View File

@ -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);