[FFmpeg-devel] [PATCH 3/3] examples/filtering_audio: do not stop on decode error.
Nicolas George
nicolas.george at normalesup.org
Sat Apr 28 00:53:44 CEST 2012
Decode errors can happen with concatenated MP3s
with different formats.
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
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) {
--
1.7.2.5
More information about the ffmpeg-devel
mailing list