diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-06-02 09:27:17 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-06-02 09:27:17 +0200 |
commit | 406d5ba04afd4d512c36065f670b0315f621027f (patch) | |
tree | 645c6272abd6ae2c75169aa92a676ea398d88292 | |
parent | 2ef3c94b82ef54673ff838c48483e5b50ff59274 (diff) |
avvidenc: Fix indention and "bracketing" of goto labels
Should fix CID 1219865, which looks like the code analysis
algorithm was just confused.
-rw-r--r-- | ext/libav/gstavvidenc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/libav/gstavvidenc.c b/ext/libav/gstavvidenc.c index 4f107c883b..b2c2458812 100644 --- a/ext/libav/gstavvidenc.c +++ b/ext/libav/gstavvidenc.c @@ -546,13 +546,16 @@ bad_input_fmt: oclass->in_plugin->name); goto close_codec; } +close_codec: { - close_codec: gst_ffmpeg_avcodec_close (ffmpegenc->context); if (avcodec_get_context_defaults3 (ffmpegenc->context, oclass->in_plugin) < 0) GST_DEBUG_OBJECT (ffmpegenc, "Failed to set context defaults"); - cleanup_stats_in: + goto cleanup_stats_in; + } +cleanup_stats_in: + { if (ffmpegenc->context->stats_in) g_free (ffmpegenc->context->stats_in); return FALSE; |