Ticket #5084: libs_libmythtv_avformatdecoder.cpp-spelling-errors.patch

File libs_libmythtv_avformatdecoder.cpp-spelling-errors.patch, 3.9 KB (added by Erik Hovland <erik@…>, 16 years ago)

fix comments in avformatdecoder.cpp

  • libs/libmythtv/avformatdecoder.cpp

    Comment fix in the avformatdecoder header
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     libs/libmythtv/avformatdecoder.cpp |   12 ++++++------
     libs/libmythtv/avformatdecoder.h   |    4 ++--
     2 files changed, 8 insertions(+), 8 deletions(-)
    
    diff --git a/libs/libmythtv/avformatdecoder.cpp b/libs/libmythtv/avformatdecoder.cpp
    index bcd3cd6..ecee4d0 100644
    a b static void myth_av_log(void *ptr, int level, const char* fmt, va_list vl) 
    9292
    9393    char str[msg_len+1];
    9494    int bytes = vsnprintf(str, msg_len+1, fmt, vl);
    95     // check for truncted messages and fix them
     95    // check for truncated messages and fix them
    9696    if (bytes > msg_len)
    9797    {
    9898        VERBOSE(VB_IMPORTANT, QString("Libav log output truncated %1 of %2 bytes written")
    extern "C" void HandleStreamChange(void* data) { 
    844844 *
    845845 *  \param rbuffer pointer to a valid ringuffer.
    846846 *  \param novideo if true then no video is sought in ScanSreams.
    847  *  \param testbuf this paramater is not used by AvFormatDecoder.
     847 *  \param testbuf this parameter is not used by AvFormatDecoder.
    848848 */
    849849int AvFormatDecoder::OpenFile(RingBuffer *rbuffer, bool novideo,
    850850                              char testbuf[kDecoderProbeBufferSize],
    int AvFormatDecoder::OpenFile(RingBuffer *rbuffer, bool novideo, 
    970970        }
    971971        else
    972972        {
    973             // the pvr-250 seems to overreport the bitrate by * 2
     973            // the pvr-250 seems to over report the bitrate by * 2
    974974            float bytespersec = (float)bitrate / 8 / 2;
    975975            float secs = ringBuffer->GetRealFileSize() * 1.0 / bytespersec;
    976976            GetNVP()->SetFileLength((int)(secs), (int)(secs * fps));
    bool AvFormatDecoder::HasVideo(const AVFormatContext *ic) 
    38453845        // will ignore other uses of the same stream id in DVB countries.
    38463846        has_video |= pmt.IsVideo(i, "dvb");
    38473847
    3848         // MHEG may explictly select a private stream as video
     3848        // MHEG may explicitly select a private stream as video
    38493849        has_video |= ((i == (uint)selectedVideoIndex) &&
    38503850                      (pmt.StreamType(i) == StreamID::PrivData));
    38513851    }
    void *AvFormatDecoder::GetVideoCodecPrivate(void) 
    39263926
    39273927void AvFormatDecoder::SetDisablePassThrough(bool disable)
    39283928{
    3929     // can only disable never reenable as once
     3929    // can only disable never re-enable as once
    39303930    // timestretch is on its on for the session
    39313931    if (disable_passthru)
    39323932        return;
    bool AvFormatDecoder::SetupAudioStream(void) 
    40194019
    40204020        GetNVP()->SetAudioParams(digInfo.bps(), digInfo.channels,
    40214021                                 digInfo.sample_rate, audioIn.do_passthru);
    4022         // allow the audio stuff to reencode
     4022        // allow the audio stuff to re-encode
    40234023        GetNVP()->SetAudioCodec(codec_ctx);
    40244024        GetNVP()->ReinitAudio();
    40254025        return true;
  • libs/libmythtv/avformatdecoder.h

    diff --git a/libs/libmythtv/avformatdecoder.h b/libs/libmythtv/avformatdecoder.h
    index af93a43..426af5d 100644
    a b class AudioInfo 
    7979/// A decoder for video files.
    8080
    8181/// The AvFormatDecoder is used to decode non-NuppleVideo files.
    82 /// It's used a a decoder of last resort after trying the NuppelDecoder
     82/// It's used as a decoder of last resort after trying the NuppelDecoder
    8383/// and IvtvDecoder (if "USING_IVTV" is defined).
    8484class AvFormatDecoder : public DecoderBase
    8585{
    class AvFormatDecoder : public DecoderBase 
    184184    void InitVideoCodec(AVStream *stream, AVCodecContext *enc,
    185185                        bool selectedStream = false);
    186186
    187     /// Preprocess a packet, setting the video parms if nessesary.
     187    /// Preprocess a packet, setting the video parms if necessary.
    188188    void MpegPreProcessPkt(AVStream *stream, AVPacket *pkt);
    189189    void H264PreProcessPkt(AVStream *stream, AVPacket *pkt);
    190190