changeset 4343:d9a61f401c11 libavcodec

print error when decoding fails
author bcoudurier
date Wed, 10 Jan 2007 14:23:28 +0000
parents 26780fdda85a
children 4aa24216f71a
files a52dec.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/a52dec.c	Wed Jan 10 14:19:33 2007 +0000
+++ b/a52dec.c	Wed Jan 10 14:23:28 2007 +0000
@@ -217,6 +217,7 @@
             level = 1;
             if (s->a52_frame(s->state, s->inbuf, &flags, &level, 384)) {
             fail:
+                av_log(avctx, AV_LOG_ERROR, "Error decoding frame\n");
                 s->inbuf_ptr = s->inbuf;
                 s->frame_size = 0;
                 continue;