[FFmpeg-cvslog] avcodec/libzvbi-teletextdec: remove DEBUG code

Marton Balint git at videolan.org
Sun May 6 23:07:53 EEST 2018


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat Apr 28 21:46:18 2018 +0200| [ab7692ee35945084966311d5e1cf3fcbcbccd5a3] | committer: Marton Balint

avcodec/libzvbi-teletextdec: remove DEBUG code

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ab7692ee35945084966311d5e1cf3fcbcbccd5a3
---

 libavcodec/libzvbi-teletextdec.c | 25 -------------------------
 1 file changed, 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;
 }



More information about the ffmpeg-cvslog mailing list