Commit 6daa80bb authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

avvidenc: discard input frame upon encoding error

parent 0326da16
......@@ -633,7 +633,8 @@ encode_fail:
GST_ERROR_OBJECT (ffmpegenc,
"avenc_%s: failed to encode buffer", oclass->in_plugin->name);
return GST_FLOW_OK;
/* avoid frame (and ts etc) piling up */
return gst_video_encoder_finish_frame (encoder, frame);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment