[FFmpeg-cvslog] examples/filtering_audio: do not stop on decode error.

Nicolas George git at videolan.org
Sat Apr 28 10:47:53 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Fri Apr 27 23:46:09 2012 +0200| [a0a0199da3f9730f23f3f73f193991d05bf12d71] | committer: Nicolas George

examples/filtering_audio: do not stop on decode error.

Decode errors can happen with concatenated MP3s
with different formats.

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

 doc/examples/filtering_audio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c
index 21b00fb..45d5c64 100644
--- a/doc/examples/filtering_audio.c
+++ b/doc/examples/filtering_audio.c
@@ -199,7 +199,7 @@ int main(int argc, char **argv)
             av_free_packet(&packet);
             if (ret < 0) {
                 av_log(NULL, AV_LOG_ERROR, "Error decoding audio\n");
-                break;
+                continue;
             }
 
             if (got_frame) {



More information about the ffmpeg-cvslog mailing list