avvidenc: discard input frame upon encoding error

This commit is contained in:
Mark Nauwelaerts 2014-03-22 17:10:24 +01:00
parent 0326da163c
commit 6daa80bbbe

View file

@ -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);
}
}