diff options
Diffstat (limited to 'video/out/vo_lavc.c')
-rw-r--r-- | video/out/vo_lavc.c | 5 |
1 files changed, 1 insertions, 4 deletions
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); |