From patchwork Wed May 2 20:48:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 8746 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:155:0:0:0:0:0 with SMTP id c82-v6csp1058956jad; Wed, 2 May 2018 13:48:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr0ws1u3O8Q4ykqO19t6ptsMS3z+bNXdDchWhuyzWr2D3gltNSgfkpCC1+prNDgfMJKZHFn X-Received: by 2002:adf:9a27:: with SMTP id z36-v6mr15304667wrb.47.1525294115654; Wed, 02 May 2018 13:48:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525294115; cv=none; d=google.com; s=arc-20160816; b=xPjaIS8s5Bn+RruKLaeDQnYFiUAcu0XktQz8ko3RVcCQvrNX0dtnT9ER2ykIgYE7uw VWinhkArYaaOXEpPKDS/Z02h5TYmJ3zgDgzMdA42DH0Ez/Y0pSjvZEfx9+97a7gawUMB qbbVkp0DYZsR3+LN00yl7xZnfmHvDl7P/H1EVYMImCDB/aagJAKNE4zQwN5ihY7UMSe4 BWJ/5w4I4tnoFq/TIUH5D9nrUni70YQZMiMv1n+YbC/jAIvIF6mwnJj7U3UUEUMEqAfw hqV/lca6btqQCofQwUuXNojMO1AM343DDMkKmj8hyboER2EPieeTpiqca9dgKsm/Zguu SjKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=nr9h+1EddZdpTRMyCqx0btl3neAryqx+B4y4KDItFs4=; b=IU3ffyOWVT4OCEv2aa8U94KZMUMdCRd9q0TnL8lHWIEW12Sl/AurEb8+5sFRXwPXEn mhj8ZTsRb3MwyUAAv3ufFhFRJHffB4B+j5Z2VLhSk5SYe7o4Hs6NeWHxCPaD3b1/dHwj pv7DSgvplZXCG4IykKw99RRgFmVAnyQtsNrnD9SiIpe5K8YnRHojZIidaCVOaxQi/4p7 DPsm2Pel4tzZwOFUEjsXRCNz4SWrrU+Kk25WyoIaFbzCTlFhEe9SVH3+5HkvqZdjszYR zmgm2E8BxmctKOUTkVqP0TyKfONYxLwzrmS6pn0snY7duwqZE2AohXTNuIWvsJK3wKaF E/Dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id r106-v6si10901403wrb.70.2018.05.02.13.48.35; Wed, 02 May 2018 13:48:35 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D7E7868A41A; Wed, 2 May 2018 23:47:55 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0439768A41A for ; Wed, 2 May 2018 23:47:50 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 20E0DE10B6; Wed, 2 May 2018 22:48:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gNKRgtziX2W0; Wed, 2 May 2018 22:48:21 +0200 (CEST) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 7435DE08D1; Wed, 2 May 2018 22:48:21 +0200 (CEST) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Wed, 2 May 2018 22:48:11 +0200 Message-Id: <20180502204812.18598-2-cus@passwd.hu> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180502204812.18598-1-cus@passwd.hu> References: <20180502204812.18598-1-cus@passwd.hu> Subject: [FFmpeg-devel] [PATCH 2/3] avcodec/libzvbi-teletextdec: remove DEBUG code X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Marton Balint MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Marton Balint --- 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; }