summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mnauw@users.sourceforge.net>2014-03-22 16:10:24 (GMT)
committerMark Nauwelaerts <mnauw@users.sourceforge.net>2014-03-25 20:06:01 (GMT)
commit6daa80bbbe874b572b718aa1520b19d51751a507 (patch)
treecf537a11be7b0c823b51a22b766aa2291cf27304
parent0326da163c9934e5dc7d809e7406a4d61693fae5 (diff)
downloadgst-libav-master.tar.gz
gst-libav-master.tar.xz
avvidenc: discard input frame upon encoding errorHEADmaster
-rw-r--r--ext/libav/gstavvidenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/libav/gstavvidenc.c b/ext/libav/gstavvidenc.c
index d8b2e7e..9a52c7f 100644
--- a/ext/libav/gstavvidenc.c
+++ b/ext/libav/gstavvidenc.c
@@ -633,7 +633,8 @@ encode_fail:
GST_ERROR_OBJECT (ffmpegenc,
"avenc_%s: failed to encode buffer", oclass->in_plugin->name);
#endif /* GST_DISABLE_GST_DEBUG */
- return GST_FLOW_OK;
+ /* avoid frame (and ts etc) piling up */
+ return gst_video_encoder_finish_frame (encoder, frame);
}
}