summaryrefslogtreecommitdiff
path: root/libavcodec/pgssubdec.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-03-16 08:57:36 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-04-19 12:41:59 +0100
commit6a85dfc830f51f1f5c2d36d4182d265c1ea3ba25 (patch)
treee7c2aefd4766229b73aef86bf3312563f70a658c /libavcodec/pgssubdec.c
parent1a3eb042c704dea190c644def5b32c9cee8832b8 (diff)
lavc: Replace av_dlog and tprintf with internal macros
Diffstat (limited to 'libavcodec/pgssubdec.c')
-rw-r--r--libavcodec/pgssubdec.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c
index 6217c406d9..72142e6f7c 100644
--- a/libavcodec/pgssubdec.c
+++ b/libavcodec/pgssubdec.c
@@ -210,7 +210,7 @@ static int decode_rle(AVCodecContext *avctx, AVSubtitleRect *rect,
return AVERROR_INVALIDDATA;
}
- av_dlog(avctx, "Pixel Count = %d, Area = %d\n", pixel_count, rect->w * rect->h);
+ ff_dlog(avctx, "Pixel Count = %d, Area = %d\n", pixel_count, rect->w * rect->h);
return 0;
}
@@ -354,7 +354,7 @@ static int parse_palette_segment(AVCodecContext *avctx,
YUV_TO_RGB1(cb, cr);
YUV_TO_RGB2(r, g, b, y);
- av_dlog(avctx, "Color %d := (%d,%d,%d,%d)\n", color_id, r, g, b, alpha);
+ ff_dlog(avctx, "Color %d := (%d,%d,%d,%d)\n", color_id, r, g, b, alpha);
/* Store color in palette */
palette->clut[color_id] = RGBA(r,g,b,alpha);
@@ -387,7 +387,7 @@ static int parse_presentation_segment(AVCodecContext *avctx,
ctx->presentation.pts = pts;
- av_dlog(avctx, "Video Dimensions %dx%d\n",
+ ff_dlog(avctx, "Video Dimensions %dx%d\n",
w, h);
ret = ff_set_dimensions(avctx, w, h);
if (ret < 0)
@@ -445,7 +445,7 @@ static int parse_presentation_segment(AVCodecContext *avctx,
ctx->presentation.objects[i].crop_h = bytestream_get_be16(&buf);
}
- av_dlog(avctx, "Subtitle Placement x=%d, y=%d\n",
+ ff_dlog(avctx, "Subtitle Placement x=%d, y=%d\n",
ctx->presentation.objects[i].x, ctx->presentation.objects[i].y);
if (ctx->presentation.objects[i].x > avctx->width ||
@@ -587,16 +587,16 @@ static int decode(AVCodecContext *avctx, void *data, int *data_size,
int segment_length;
int i, ret;
- av_dlog(avctx, "PGS sub packet:\n");
+ ff_dlog(avctx, "PGS sub packet:\n");
for (i = 0; i < buf_size; i++) {
- av_dlog(avctx, "%02x ", buf[i]);
+ ff_dlog(avctx, "%02x ", buf[i]);
if (i % 16 == 15)
- av_dlog(avctx, "\n");
+ ff_dlog(avctx, "\n");
}
if (i & 15)
- av_dlog(avctx, "\n");
+ ff_dlog(avctx, "\n");
*data_size = 0;
@@ -611,7 +611,7 @@ static int decode(AVCodecContext *avctx, void *data, int *data_size,
segment_type = bytestream_get_byte(&buf);
segment_length = bytestream_get_be16(&buf);
- av_dlog(avctx, "Segment Length %d, Segment Type %x\n", segment_length, segment_type);
+ ff_dlog(avctx, "Segment Length %d, Segment Type %x\n", segment_length, segment_type);
if (segment_type != DISPLAY_SEGMENT && segment_length > buf_end - buf)
break;