From d0f4e4fb17394080b64ea15324733ea0b3d126ca Mon Sep 17 00:00:00 2001
From: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Date: Wed, 10 Jan 2007 14:23:28 +0000
Subject: [PATCH] print error when decoding fails

Originally committed as revision 7436 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/a52dec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/a52dec.c b/libavcodec/a52dec.c
index e810bc7d77c..0a7c0c552fd 100644
--- a/libavcodec/a52dec.c
+++ b/libavcodec/a52dec.c
@@ -217,6 +217,7 @@ static int a52_decode_frame(AVCodecContext *avctx,
             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;
-- 
GitLab