mirror of https://github.com/mpv-player/mpv
vo_lavc: silence warning when writing y4m
Apparently a ffmpeg issue. Hide the warning because it's annoying. Workaround suggested by divVerent.
This commit is contained in:
parent
4a5d1f2d44
commit
d16516f553
|
@ -210,7 +210,7 @@ static void write_packet(struct vo *vo, int size, AVPacket *packet)
|
||||||
vc->stream->codec->time_base,
|
vc->stream->codec->time_base,
|
||||||
vc->stream->time_base);
|
vc->stream->time_base);
|
||||||
} else {
|
} else {
|
||||||
mp_msg(MSGT_ENCODE, MSGL_WARN, "vo-lavc: codec did not provide pts\n");
|
mp_msg(MSGT_ENCODE, MSGL_V, "vo-lavc: codec did not provide pts\n");
|
||||||
packet->pts = av_rescale_q(vc->lastipts, vc->worst_time_base,
|
packet->pts = av_rescale_q(vc->lastipts, vc->worst_time_base,
|
||||||
vc->stream->time_base);
|
vc->stream->time_base);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue