From 1d75d013927f99ccc1342388ebbaa19b206beb67 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 17 Jun 2013 08:56:55 +0200 Subject: vo_lavc: use mp_image_copy_fields_to_av_frame --- video/out/vo_lavc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'video/out/vo_lavc.c') diff --git a/video/out/vo_lavc.c b/video/out/vo_lavc.c index ca3f1c5a5f..4da8733d14 100644 --- a/video/out/vo_lavc.c +++ b/video/out/vo_lavc.c @@ -428,10 +428,7 @@ static void draw_image(struct vo *vo, mp_image_t *mpi) frame->pts = av_rescale_q(vc->lastipts + skipframes, vc->worst_time_base, avc->time_base); - for (i = 0; i < 4; i++) { - frame->data[i] = vc->lastimg->planes[i]; - frame->linesize[i] = vc->lastimg->stride[i]; - } + mp_image_copy_fields_to_av_frame(frame, vc->lastimg); frame->quality = avc->global_quality; av_init_packet(&packet); -- cgit v1.2.3