avvidenc: Fix indention and "bracketing" of goto labels
authorSebastian Dröge <sebastian@centricular.com>
Mon, 2 Jun 2014 07:27:17 +0000 (09:27 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 2 Jun 2014 07:27:17 +0000 (09:27 +0200)
Should fix CID 1219865, which looks like the code analysis
algorithm was just confused.

ext/libav/gstavvidenc.c

index 4f107c8..b2c2458 100644 (file)
@@ -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;