vp8enc: Use 0 as duration for the EOS "frame"
authorSebastian Dröge <sebastian@centricular.com>
Mon, 2 Mar 2015 14:06:09 +0000 (15:06 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 2 Mar 2015 14:06:09 +0000 (15:06 +0100)
ext/vpx/gstvp8enc.c

index 7513943..967bfa8 100644 (file)
@@ -1888,7 +1888,7 @@ gst_vp8_enc_drain (GstVideoEncoder * video_encoder)
       encoder->cfg.g_timebase.num * (GstClockTime) GST_SECOND,
       encoder->cfg.g_timebase.den);
 
-  status = vpx_codec_encode (&encoder->encoder, NULL, pts, 1, flags, deadline);
+  status = vpx_codec_encode (&encoder->encoder, NULL, pts, 0, flags, deadline);
   g_mutex_unlock (&encoder->encoder_lock);
 
   if (status != 0) {