avconv: Replace goto redo on decode fail with continue.
authorAlex Converse <alex.converse@gmail.com>
Tue, 23 Aug 2011 20:47:31 +0000 (13:47 -0700)
committerAlex Converse <alex.converse@gmail.com>
Wed, 24 Aug 2011 17:13:32 +0000 (10:13 -0700)
This checks for sigterm but otherwise is identical to the previous
behavior.

avconv.c

index 6f1b237..57721f8 100644 (file)
--- a/avconv.c
+++ b/avconv.c
@@ -2246,7 +2246,6 @@ static int transcode(OutputFile *output_files,
         int64_t ipts_min;
         double opts_min;
 
-    redo:
         ipts_min = INT64_MAX;
         opts_min= 1e100;
 
@@ -2361,7 +2360,7 @@ static int transcode(OutputFile *output_files,
             if (exit_on_error)
                 exit_program(1);
             av_free_packet(&pkt);
-            goto redo;
+            continue;
         }
 
     discard_packet: