mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
avcodecmap: use framerate instead of time_base when decoding
Documentation for AVCodecContext::time_base: > decoding: the use of this field for decoding is deprecated. > Use framerate instead. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-libav/-/merge_requests/74>
This commit is contained in:
parent
0a985ff677
commit
797c7e1bdf
1 changed files with 2 additions and 2 deletions
|
@ -284,8 +284,8 @@ gst_ff_vid_caps_new (AVCodecContext * context, AVCodec * codec,
|
|||
"width", G_TYPE_INT, context->width,
|
||||
"height", G_TYPE_INT, context->height, NULL);
|
||||
|
||||
num = context->time_base.den / context->ticks_per_frame;
|
||||
denom = context->time_base.num;
|
||||
num = context->framerate.num;
|
||||
denom = context->framerate.den;
|
||||
|
||||
if (!denom) {
|
||||
GST_LOG ("invalid framerate: %d/0, -> %d/1", num, num);
|
||||
|
|
Loading…
Reference in a new issue