[Decoder/DirectVideo] 0/1 framerate
authorJaeyun <jy1210.jung@samsung.com>
Tue, 5 Mar 2019 10:10:44 +0000 (19:10 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 6 Mar 2019 04:52:17 +0000 (13:52 +0900)
Allow 0/1 framerate in decoder-direct video mode

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
ext/nnstreamer/tensor_decoder/tensordec-directvideo.c

index 2fde6f3..899c1a3 100644 (file)
@@ -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);
   }