diff options
author | Marton Balint <cus@passwd.hu> | 2018-04-28 21:46:18 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2018-05-06 21:57:24 +0200 |
commit | ab7692ee35945084966311d5e1cf3fcbcbccd5a3 (patch) | |
tree | 7902a9f327424bc542a3f27feee5f71dbda90f6d /libavcodec/libzvbi-teletextdec.c | |
parent | 03038d4da95eaceef887a4c936825fa58841d767 (diff) | |
download | ffmpeg-ab7692ee35945084966311d5e1cf3fcbcbccd5a3.tar.gz |
avcodec/libzvbi-teletextdec: remove DEBUG code
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavcodec/libzvbi-teletextdec.c')
-rw-r--r-- | libavcodec/libzvbi-teletextdec.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c index 44fca17b5d..a800ad34ae 100644 --- a/libavcodec/libzvbi-teletextdec.c +++ b/libavcodec/libzvbi-teletextdec.c @@ -70,9 +70,6 @@ typedef struct TeletextContext int handler_ret; vbi_decoder * vbi; -#ifdef DEBUG - vbi_export * ex; -#endif vbi_sliced sliced[MAX_SLICES]; int readorder; @@ -306,15 +303,6 @@ static void handler(vbi_event *ev, void *user_data) if (!res) 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); chop_top = ctx->chop_top || ((page.rows > 1) && (vpt == VBI_SUBTITLE_PAGE)); @@ -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", ctx, pkt->size, lines, (double)pkt->pts/90000.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); ctx->lines_processed += lines; } @@ -505,12 +486,6 @@ static int teletext_init_decoder(AVCodecContext *avctx) if (ctx->opacity == -1) 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); return (ctx->format_id == 1) ? ff_ass_subtitle_header_default(avctx) : 0; } |