mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
avvidenc: discard input frame upon encoding error
This commit is contained in:
parent
0326da163c
commit
6daa80bbbe
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue