diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-23 18:10:02 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-23 18:10:02 +0100 |
commit | 0efcf16a3e6ea19abf65e86ef6116dc88892a670 (patch) | |
tree | 02fa96255bc4b6f57fa3c890938cba1df0b0d421 /libavcodec | |
parent | c322f19855df10f9ceaf3f15a3c0d9d3b78c7279 (diff) | |
download | ffmpeg-0efcf16a3e6ea19abf65e86ef6116dc88892a670.tar.gz |
replace av_log(0, by av_log(NULL,
The first parameter is a pointer and NULL is more correct
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/bink.c | 2 | ||||
-rw-r--r-- | libavcodec/dsicinav.c | 2 | ||||
-rw-r--r-- | libavcodec/iff.c | 2 | ||||
-rw-r--r-- | libavcodec/imgconvert.c | 6 | ||||
-rw-r--r-- | libavcodec/ivi_common.c | 4 | ||||
-rw-r--r-- | libavcodec/lzw.c | 2 | ||||
-rw-r--r-- | libavcodec/mpegaudiodec.c | 2 | ||||
-rw-r--r-- | libavcodec/qdm2.c | 4 |
8 files changed, 12 insertions, 12 deletions
diff --git a/libavcodec/bink.c b/libavcodec/bink.c index bcc6361c7a..bb202ca60a 100644 --- a/libavcodec/bink.c +++ b/libavcodec/bink.c @@ -675,7 +675,7 @@ static int read_dct_coeffs(GetBitContext *gb, int32_t block[64], const uint8_t * } else { quant_idx = q; if (quant_idx > 15U) { - av_log(0, AV_LOG_ERROR, "quant_index %d out of range\n", quant_idx); + av_log(NULL, AV_LOG_ERROR, "quant_index %d out of range\n", quant_idx); return AVERROR_INVALIDDATA; } } diff --git a/libavcodec/dsicinav.c b/libavcodec/dsicinav.c index a1b45f1945..0290f5ab11 100644 --- a/libavcodec/dsicinav.c +++ b/libavcodec/dsicinav.c @@ -212,7 +212,7 @@ static int cin_decode_rle(const unsigned char *src, int src_size, unsigned char } else { len = code + 1; if (len > src_end-src) { - av_log(0, AV_LOG_ERROR, "RLE overread\n"); + av_log(NULL, AV_LOG_ERROR, "RLE overread\n"); return AVERROR_INVALIDDATA; } memcpy(dst, src, FFMIN(len, dst_end - dst)); diff --git a/libavcodec/iff.c b/libavcodec/iff.c index c196cf6017..7fa0d52515 100644 --- a/libavcodec/iff.c +++ b/libavcodec/iff.c @@ -372,7 +372,7 @@ static void decodeplane8(uint8_t *dst, const uint8_t *buf, int buf_size, int pla { const uint64_t *lut = plane8_lut[plane]; if (plane >= 8) { - av_log(0, AV_LOG_WARNING, "Ignoring extra planes beyond 8\n"); + av_log(NULL, AV_LOG_WARNING, "Ignoring extra planes beyond 8\n"); return; } do { diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index e74232ec50..030810c916 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -643,12 +643,12 @@ int main(void){ continue; } if (skip) { - av_log(0, AV_LOG_INFO, "%3d unused pixel format values\n", skip); + av_log(NULL, AV_LOG_INFO, "%3d unused pixel format values\n", skip); skip = 0; } - av_log(0, AV_LOG_INFO, "pix fmt %s yuv_plan:%d avg_bpp:%d colortype:%d\n", desc->name, is_yuv_planar(desc), av_get_padded_bits_per_pixel(desc), get_color_type(desc)); + av_log(NULL, AV_LOG_INFO, "pix fmt %s yuv_plan:%d avg_bpp:%d colortype:%d\n", desc->name, is_yuv_planar(desc), av_get_padded_bits_per_pixel(desc), get_color_type(desc)); if ((!(desc->flags & PIX_FMT_ALPHA)) != (desc->nb_components != 2 && desc->nb_components != 4)) { - av_log(0, AV_LOG_ERROR, "Alpha flag mismatch\n"); + av_log(NULL, AV_LOG_ERROR, "Alpha flag mismatch\n"); err = 1; } } diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c index 6cb4ea274a..c20ce77b3b 100644 --- a/libavcodec/ivi_common.c +++ b/libavcodec/ivi_common.c @@ -311,7 +311,7 @@ av_cold int ff_ivi_init_tiles(IVIPlaneDesc *planes, int tile_width, int tile_hei if (tile->num_MBs <= ref_tile->num_MBs) { tile->ref_mbs = ref_tile->mbs; }else - av_log(0, AV_LOG_DEBUG, "Cannot use ref_tile, too few mbs\n"); + av_log(NULL, AV_LOG_DEBUG, "Cannot use ref_tile, too few mbs\n"); ref_tile++; } @@ -466,7 +466,7 @@ int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile) col_flags[0] |= !!prev_dc; } if(band->transform_size > band->blk_size){ - av_log(0, AV_LOG_ERROR, "Too large transform\n"); + av_log(NULL, AV_LOG_ERROR, "Too large transform\n"); return AVERROR_INVALIDDATA; } /* apply inverse transform */ diff --git a/libavcodec/lzw.c b/libavcodec/lzw.c index d06e3a0ce5..97f6e6ac82 100644 --- a/libavcodec/lzw.c +++ b/libavcodec/lzw.c @@ -192,7 +192,7 @@ int ff_lzw_decode(LZWState *p, uint8_t *buf, int len){ goto the_end; } if (s->ebuf < s->pbuf) { - av_log(0, AV_LOG_ERROR, "lzw overread\n"); + av_log(NULL, AV_LOG_ERROR, "lzw overread\n"); goto the_end; } c = lzw_get_code(s); diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index 8f7d34c254..dcd2f159b7 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -268,7 +268,7 @@ static inline int l3_unscale(int value, int exponent) e -= exponent >> 2; #ifdef DEBUG if(e < 1) - av_log(0, AV_LOG_WARNING, "l3_unscale: e is %d\n", e); + av_log(NULL, AV_LOG_WARNING, "l3_unscale: e is %d\n", e); #endif if (e > 31) return 0; diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c index 892f96ff37..4cf4b2f932 100644 --- a/libavcodec/qdm2.c +++ b/libavcodec/qdm2.c @@ -347,7 +347,7 @@ static int qdm2_get_vlc (GetBitContext *gb, VLC *vlc, int flag, int depth) int tmp; if (value >= 60) { - av_log(0, AV_LOG_ERROR, "value %d in qdm2_get_vlc too large\n", value); + av_log(NULL, AV_LOG_ERROR, "value %d in qdm2_get_vlc too large\n", value); return 0; } @@ -1360,7 +1360,7 @@ static void qdm2_fft_decode_tones (QDM2Context *q, int duration, GetBitContext * while ((n = qdm2_get_vlc(gb, &vlc_tab_fft_tone_offset[local_int_8], 1, 2)) < 2) { if (get_bits_left(gb)<0) { if(local_int_4 < q->group_size) - av_log(0, AV_LOG_ERROR, "overread in qdm2_fft_decode_tones()\n"); + av_log(NULL, AV_LOG_ERROR, "overread in qdm2_fft_decode_tones()\n"); return; } offset = 1; |