mirror of https://github.com/mpv-player/mpv
vo_lavc: use mp_image_copy_fields_to_av_frame
This commit is contained in:
parent
c412f7daf6
commit
1d75d01392
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue