changeset 10321:7f609ddb85bf libavcodec

Use context instead of NULL for logging.
author reimar
date Tue, 29 Sep 2009 19:18:51 +0000
parents 44f31c1c9acc
children 6bca3f74d77d
files dv.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dv.c	Tue Sep 29 19:17:18 2009 +0000
+++ b/dv.c	Tue Sep 29 19:18:51 2009 +0000
@@ -631,7 +631,7 @@
                 dv_decode_ac(&gb, mb, block);
             }
             if (mb->pos >= 64 && mb->pos < 127)
-                av_log(NULL, AV_LOG_ERROR, "AC EOB marker is absent pos=%d\n", mb->pos);
+                av_log(avctx, AV_LOG_ERROR, "AC EOB marker is absent pos=%d\n", mb->pos);
             block += 64;
             mb++;
         }
@@ -1099,7 +1099,7 @@
        if (enc_blks[j].partial_bit_count)
            pb = dv_encode_ac(&enc_blks[j], pb, &pbs[s->sys->bpm*5]);
        if (enc_blks[j].partial_bit_count)
-            av_log(NULL, AV_LOG_ERROR, "ac bitstream overflow\n");
+            av_log(avctx, AV_LOG_ERROR, "ac bitstream overflow\n");
     }
 
     for (j=0; j<5*s->sys->bpm; j++) {