vo_lavc: fix build on Libav

OF COURSE Libav doesn't have AV_PICTURE_TYPE_NONE. Why the fuck would
it?
This commit is contained in:
wm4 2016-04-15 19:35:29 +02:00
parent 050b17ca9c
commit 9db1b7a001
1 changed files with 1 additions and 2 deletions

View File

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