vo_lavc: use mp_image_copy_fields_to_av_frame

This commit is contained in:
Rudolf Polzer 2013-06-17 08:56:55 +02:00
parent c412f7daf6
commit 1d75d01392
1 changed files with 1 additions and 4 deletions

View File

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