svq1: Fix building with -DDEBUG

Message ID 1355304449-13772-1-git-send-email-martin@martin.st
State Committed
Commit 48238fd00b22518158999a0aac5d620bc31dc8d7
Headers show

Commit Message

Martin Storsjö Dec. 12, 2012, 9:27 a.m.
---
 libavcodec/svq1dec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Kostya Shishkov Dec. 12, 2012, 9:35 a.m. | #1
On Wed, Dec 12, 2012 at 11:27:29AM +0200, Martin Storsjö wrote:
> ---
>  libavcodec/svq1dec.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c
> index 25837f5..5156042 100644
> --- a/libavcodec/svq1dec.c
> +++ b/libavcodec/svq1dec.c
> @@ -640,7 +640,7 @@ static int svq1_decode_frame(AVCodecContext *avctx, void *data,
>      result = svq1_decode_frame_header(avctx, cur);
>  
>      if (result != 0) {
> -        av_dlog(s->avctx, "Error in svq1_decode_frame_header %i\n", result);
> +        av_dlog(avctx, "Error in svq1_decode_frame_header %i\n", result);
>          return result;
>      }
>      avcodec_set_dimensions(avctx, s->width, s->height);
> @@ -707,7 +707,7 @@ static int svq1_decode_frame(AVCodecContext *avctx, void *data,
>                                                       previous, linesize,
>                                                       pmv, x, y);
>                      if (result != 0) {
> -                        av_dlog(s->avctx,
> +                        av_dlog(avctx,
>                                  "Error in svq1_decode_delta_block %i\n",
>                                  result);
>                          goto err;
> -- 

looks OK

Patch

diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c
index 25837f5..5156042 100644
--- a/libavcodec/svq1dec.c
+++ b/libavcodec/svq1dec.c
@@ -640,7 +640,7 @@  static int svq1_decode_frame(AVCodecContext *avctx, void *data,
     result = svq1_decode_frame_header(avctx, cur);
 
     if (result != 0) {
-        av_dlog(s->avctx, "Error in svq1_decode_frame_header %i\n", result);
+        av_dlog(avctx, "Error in svq1_decode_frame_header %i\n", result);
         return result;
     }
     avcodec_set_dimensions(avctx, s->width, s->height);
@@ -707,7 +707,7 @@  static int svq1_decode_frame(AVCodecContext *avctx, void *data,
                                                      previous, linesize,
                                                      pmv, x, y);
                     if (result != 0) {
-                        av_dlog(s->avctx,
+                        av_dlog(avctx,
                                 "Error in svq1_decode_delta_block %i\n",
                                 result);
                         goto err;