Commit ab7692ee authored by Marton Balint's avatar Marton Balint

avcodec/libzvbi-teletextdec: remove DEBUG code

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 03038d4d
...@@ -70,9 +70,6 @@ typedef struct TeletextContext ...@@ -70,9 +70,6 @@ typedef struct TeletextContext
int handler_ret; int handler_ret;
vbi_decoder * vbi; vbi_decoder * vbi;
#ifdef DEBUG
vbi_export * ex;
#endif
vbi_sliced sliced[MAX_SLICES]; vbi_sliced sliced[MAX_SLICES];
int readorder; int readorder;
...@@ -306,15 +303,6 @@ static void handler(vbi_event *ev, void *user_data) ...@@ -306,15 +303,6 @@ static void handler(vbi_event *ev, void *user_data)
if (!res) if (!res)
return; return;
#ifdef DEBUG
fprintf(stderr, "\nSaving res=%d dy0=%d dy1=%d...\n",
res, page.dirty.y0, page.dirty.y1);
fflush(stderr);
if (!vbi_export_stdio(ctx->ex, stderr, &page))
fprintf(stderr, "failed: %s\n", vbi_export_errstr(ctx->ex));
#endif
vpt = vbi_classify_page(ctx->vbi, ev->ev.ttx_page.pgno, &subno, &lang); vpt = vbi_classify_page(ctx->vbi, ev->ev.ttx_page.pgno, &subno, &lang);
chop_top = ctx->chop_top || chop_top = ctx->chop_top ||
((page.rows > 1) && (vpt == VBI_SUBTITLE_PAGE)); ((page.rows > 1) && (vpt == VBI_SUBTITLE_PAGE));
...@@ -421,13 +409,6 @@ static int teletext_decode_frame(AVCodecContext *avctx, void *data, int *data_si ...@@ -421,13 +409,6 @@ static int teletext_decode_frame(AVCodecContext *avctx, void *data, int *data_si
ff_dlog(avctx, "ctx=%p buf_size=%d lines=%u pkt_pts=%7.3f\n", ff_dlog(avctx, "ctx=%p buf_size=%d lines=%u pkt_pts=%7.3f\n",
ctx, pkt->size, lines, (double)pkt->pts/90000.0); ctx, pkt->size, lines, (double)pkt->pts/90000.0);
if (lines > 0) { if (lines > 0) {
#ifdef DEBUG
int i;
av_log(avctx, AV_LOG_DEBUG, "line numbers:");
for(i = 0; i < lines; i++)
av_log(avctx, AV_LOG_DEBUG, " %d", ctx->sliced[i].line);
av_log(avctx, AV_LOG_DEBUG, "\n");
#endif
vbi_decode(ctx->vbi, ctx->sliced, lines, 0.0); vbi_decode(ctx->vbi, ctx->sliced, lines, 0.0);
ctx->lines_processed += lines; ctx->lines_processed += lines;
} }
...@@ -505,12 +486,6 @@ static int teletext_init_decoder(AVCodecContext *avctx) ...@@ -505,12 +486,6 @@ static int teletext_init_decoder(AVCodecContext *avctx)
if (ctx->opacity == -1) if (ctx->opacity == -1)
ctx->opacity = ctx->transparent_bg ? 0 : 255; ctx->opacity = ctx->transparent_bg ? 0 : 255;
#ifdef DEBUG
{
char *t;
ctx->ex = vbi_export_new("text", &t);
}
#endif
av_log(avctx, AV_LOG_VERBOSE, "page filter: %s\n", ctx->pgno); av_log(avctx, AV_LOG_VERBOSE, "page filter: %s\n", ctx->pgno);
return (ctx->format_id == 1) ? ff_ass_subtitle_header_default(avctx) : 0; return (ctx->format_id == 1) ? ff_ass_subtitle_header_default(avctx) : 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment