summaryrefslogtreecommitdiff
path: root/ext/openh264
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2019-01-04 02:53:33 +1100
committerJan Schmidt <jan@centricular.com>2019-01-30 14:53:02 +1100
commit40de7e5b9832575c45cd288b548acd44ca326ed5 (patch)
tree8d31fdcc736585d15b9f705eb9671dc3c92d3baa /ext/openh264
parent278cd35695f985fc2cee5e57585d93fcd2cd42b8 (diff)
openh264: Use DecodeFrameNoDelay() API instead of DecodeFrame2
Replace legacy usage of DecodeFrame2 API in favour of the recommended DecodeFrameNoDelay() This fixes problems with DecodeFrame2() not (currently) returning all frames in main/high streams with B-frames, and reduces latency - previously openh264 would not return a decoded frame until the next call to DecodeFrame2(). DecodeFrameNoDelay() returns them immediately.
Diffstat (limited to 'ext/openh264')
-rw-r--r--ext/openh264/gstopenh264dec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openh264/gstopenh264dec.cpp b/ext/openh264/gstopenh264dec.cpp
index afc4d2f52..aafccf0e4 100644
--- a/ext/openh264/gstopenh264dec.cpp
+++ b/ext/openh264/gstopenh264dec.cpp
@@ -274,7 +274,7 @@ gst_openh264dec_handle_frame (GstVideoDecoder * decoder,
GST_TIME_ARGS (frame->pts), (guint64) frame->system_frame_number);
ret =
- openh264dec->decoder->DecodeFrame2 (map_info.data, map_info.size,
+ openh264dec->decoder->DecodeFrameNoDelay (map_info.data, map_info.size,
yuvdata, &dst_buf_info);
gst_buffer_unmap (frame->input_buffer, &map_info);