mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
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:
parent
050b17ca9c
commit
9db1b7a001
@ -418,8 +418,7 @@ static void draw_image_unlocked(struct vo *vo, mp_image_t *mpi)
|
|||||||
frame->pts = av_rescale_q(vc->lastipts + skipframes,
|
frame->pts = av_rescale_q(vc->lastipts + skipframes,
|
||||||
vc->worst_time_base, avc->time_base);
|
vc->worst_time_base, avc->time_base);
|
||||||
|
|
||||||
frame->pict_type = AV_PICTURE_TYPE_NONE;
|
frame->pict_type = 0; // keep this at unknown/undefined
|
||||||
// keep this at avcodec_get_frame_defaults default
|
|
||||||
|
|
||||||
frame->quality = avc->global_quality;
|
frame->quality = avc->global_quality;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user