examples/filtering_audio: do not stop on decode error.
authorNicolas George <nicolas.george@normalesup.org>
Fri, 27 Apr 2012 21:46:09 +0000 (23:46 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Sat, 28 Apr 2012 08:28:15 +0000 (10:28 +0200)
Decode errors can happen with concatenated MP3s
with different formats.

doc/examples/filtering_audio.c

index 21b00fb..45d5c64 100644 (file)
@@ -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) {