Ticket #6729: silence.patch

File silence.patch, 2.6 KB (added by beirdo, 14 years ago)
  • mythtv/libs/libavcodec/h264.c

    commit cfcff8492e4b9e56fa63c0368f0abcae1a4f8c42
    Author: Gavin Hurlbut <gjhurlbu@gmail.com>
    Date:   Mon Aug 2 21:27:35 2010 -0700
    
        Silence the #@#$%$#ing spamming errors!
    
    diff --git a/mythtv/libs/libavcodec/h264.c b/mythtv/libs/libavcodec/h264.c
    index 65f9d47..35c8b6b 100644
    a b static int decode_slice_header(H264Context *h, H264Context *h0){ 
    17151715
    17161716    s->pict_type= h->slice_type; // to make a few old functions happy, it's wrong though
    17171717    if (s->pict_type == FF_B_TYPE && s0->last_picture_ptr == NULL) {
     1718#if 0
    17181719        av_log(h->s.avctx, AV_LOG_ERROR,
    17191720               "B picture before any references, skipping\n");
     1721#endif
    17201722        return -1;
    17211723    }
    17221724
    static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size){ 
    26232625            context_count = 0;
    26242626        }
    26252627
     2628#if 0
    26262629        if (err < 0)
    26272630            av_log(h->s.avctx, AV_LOG_ERROR, "decode_slice_header error\n");
    2628         else if(err == 1) {
     2631        else
     2632#endif
     2633        if(err == 1) {
    26292634            /* Slice could not be decoded in parallel mode, copy down
    26302635             * NAL unit stuff to context 0 and restart. Note that
    26312636             * rbsp_buffer is not transferred, but since we no longer
    static int decode_frame(AVCodecContext *avctx, 
    27432748
    27442749    if(!(s->flags2 & CODEC_FLAG2_CHUNKS) && !s->current_picture_ptr){
    27452750        if (avctx->skip_frame >= AVDISCARD_NONREF || s->hurry_up) return 0;
     2751#if 0
    27462752        av_log(avctx, AV_LOG_ERROR, "no frame!\n");
     2753#endif
    27472754        return -1;
    27482755    }
    27492756
  • mythtv/libs/libavcodec/mpegvideo.c

    diff --git a/mythtv/libs/libavcodec/mpegvideo.c b/mythtv/libs/libavcodec/mpegvideo.c
    index 009af92..49699d1 100644
    a b static int alloc_frame_buffer(MpegEncContext *s, Picture *pic) 
    202202    }
    203203
    204204    if (s->linesize && (s->linesize != pic->linesize[0] || s->uvlinesize != pic->linesize[1])) {
     205#if 0
    205206        av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed (stride changed)\n");
     207#endif
    206208        free_frame_buffer(s, pic);
    207209        return -1;
    208210    }
  • mythtv/libs/libmythtv/avformatdecoder.cpp

    diff --git a/mythtv/libs/libmythtv/avformatdecoder.cpp b/mythtv/libs/libmythtv/avformatdecoder.cpp
    index 035acd0..c262a54 100644
    a b bool AvFormatDecoder::ProcessVideoPacket(AVStream *curstream, AVPacket *pkt) 
    28732873
    28742874    if (ret < 0)
    28752875    {
     2876#if 0
    28762877        VERBOSE(VB_IMPORTANT, LOC_ERR + "Unknown decoding error");
     2878#endif
    28772879        return false;
    28782880    }
    28792881