From 9db1b7a001786ad5d4ca35decadd29189fefa8dd Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 15 Apr 2016 19:35:29 +0200 Subject: vo_lavc: fix build on Libav OF COURSE Libav doesn't have AV_PICTURE_TYPE_NONE. Why the fuck would it? --- video/out/vo_lavc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/video/out/vo_lavc.c b/video/out/vo_lavc.c index 4f70c2b2ed..188a575f45 100644 --- a/video/out/vo_lavc.c +++ b/video/out/vo_lavc.c @@ -418,8 +418,7 @@ static void draw_image_unlocked(struct vo *vo, mp_image_t *mpi) frame->pts = av_rescale_q(vc->lastipts + skipframes, vc->worst_time_base, avc->time_base); - frame->pict_type = AV_PICTURE_TYPE_NONE; - // keep this at avcodec_get_frame_defaults default + frame->pict_type = 0; // keep this at unknown/undefined frame->quality = avc->global_quality; -- cgit v1.2.3