[FFmpeg-cvslog] ffmpeg: Replace goto redo on decode fail with continue.

Alex Converse git at videolan.org
Tue Aug 30 18:15:09 CEST 2011


ffmpeg | branch: master | Alex Converse <alex.converse at gmail.com> | Tue Aug 30 16:39:05 2011 +0200| [ff037c54b43c512c7fd7f342801a086563c4de23] | committer: Michael Niedermayer

ffmpeg: Replace goto redo on decode fail with continue.

This checks for sigterm but otherwise is identical to the previous
behavior.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ff037c54b43c512c7fd7f342801a086563c4de23
---

 ffmpeg.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 29ea5b2..82169b8 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2299,7 +2299,6 @@ static int transcode(OutputFile *output_files,
         int64_t ipts_min;
         double opts_min;
 
-    redo:
         ipts_min= INT64_MAX;
         opts_min= 1e100;
         /* if 'q' pressed, exits */
@@ -2490,7 +2489,7 @@ static int transcode(OutputFile *output_files,
             if (exit_on_error)
                 exit_program(1);
             av_free_packet(&pkt);
-            goto redo;
+            continue;
         }
 
     discard_packet:



More information about the ffmpeg-cvslog mailing list