From: Jaeyun Date: Tue, 5 Mar 2019 10:10:44 +0000 (+0900) Subject: [Decoder/DirectVideo] 0/1 framerate X-Git-Tag: v0.1.2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed82096d2445cd5654256cf05bea24916bd14f91;p=platform%2Fupstream%2Fnnstreamer.git [Decoder/DirectVideo] 0/1 framerate Allow 0/1 framerate in decoder-direct video mode Signed-off-by: Jaeyun Jung --- diff --git a/ext/nnstreamer/tensor_decoder/tensordec-directvideo.c b/ext/nnstreamer/tensor_decoder/tensordec-directvideo.c index 2fde6f3..899c1a3 100644 --- a/ext/nnstreamer/tensor_decoder/tensordec-directvideo.c +++ b/ext/nnstreamer/tensor_decoder/tensordec-directvideo.c @@ -104,7 +104,7 @@ dv_getOutCaps (void **pdata, const GstTensorsConfig * config) gst_caps_set_simple (caps, "height", G_TYPE_INT, height, NULL); } - if (fn > 0 && fd > 0) { + if (fn >= 0 && fd > 0) { gst_caps_set_simple (caps, "framerate", GST_TYPE_FRACTION, fn, fd, NULL); }