diff options
author | Diego Biurrun <diego@biurrun.de> | 2011-06-06 01:25:32 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-06-07 13:20:58 +0200 |
commit | 02a8d43adf7063bda2d20039d3e9b19d8469fe69 (patch) | |
tree | 9622ed1572a90f7d1df83d2c791694b089724fea /libavcodec/pgssubdec.c | |
parent | 1f6b9cc31d086860c7a7887685bed321fe3843f4 (diff) | |
download | ffmpeg-02a8d43adf7063bda2d20039d3e9b19d8469fe69.tar.gz |
Replace some av_log/printf + #ifdef combinations by av_dlog.
Diffstat (limited to 'libavcodec/pgssubdec.c')
-rw-r--r-- | libavcodec/pgssubdec.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c index a480da1168..9546c38882 100644 --- a/libavcodec/pgssubdec.c +++ b/libavcodec/pgssubdec.c @@ -30,8 +30,6 @@ #include "libavutil/colorspace.h" #include "libavutil/imgutils.h" -//#define DEBUG_PACKET_CONTENTS - #define RGBA(r,g,b,a) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b)) enum SegmentType { @@ -404,21 +402,18 @@ static int decode(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf_end; uint8_t segment_type; int segment_length; - -#ifdef DEBUG_PACKET_CONTENTS int i; - av_log(avctx, AV_LOG_INFO, "PGS sub packet:\n"); + av_dlog(avctx, "PGS sub packet:\n"); for (i = 0; i < buf_size; i++) { - av_log(avctx, AV_LOG_INFO, "%02x ", buf[i]); + av_dlog(avctx, "%02x ", buf[i]); if (i % 16 == 15) - av_log(avctx, AV_LOG_INFO, "\n"); + av_dlog(avctx, "\n"); } if (i & 15) - av_log(avctx, AV_LOG_INFO, "\n"); -#endif + av_dlog(avctx, "\n"); *data_size = 0; |