summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-04-15 19:35:29 +0200
committerwm4 <wm4@nowhere>2016-04-15 19:35:29 +0200
commit9db1b7a001786ad5d4ca35decadd29189fefa8dd (patch)
tree52b140435b9a493eb11274be27d30a2674cd5735
parent050b17ca9ced0811aeeb27f8ad628954d1f146cd (diff)
downloadmpv-9db1b7a001786ad5d4ca35decadd29189fefa8dd.tar.bz2
mpv-9db1b7a001786ad5d4ca35decadd29189fefa8dd.tar.xz
vo_lavc: fix build on Libav
OF COURSE Libav doesn't have AV_PICTURE_TYPE_NONE. Why the fuck would it?
-rw-r--r--video/out/vo_lavc.c3
1 files changed, 1 insertions, 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;