[FFmpeg-devel] [PATCH] [H.263] remove disabled code cruft

Michael Niedermayer michaelni
Mon Dec 28 15:39:09 CET 2009


On Mon, Dec 28, 2009 at 12:47:57PM +0100, Diego Biurrun wrote:
> On Sun, Dec 27, 2009 at 03:59:55AM +0100, Michael Niedermayer wrote:
> > On Sat, Dec 26, 2009 at 06:22:42PM +0100, Diego Biurrun wrote:
> > > $subject, as attached
> > [...]
> > > @@ -4908,28 +4878,6 @@
> > >                          SKIP_COUNTER(re, &s->gb, 1+12+1);
> > >                      }
> > >  
> > > -#if 0
> > > -                    if(s->error_recognition >= FF_ER_COMPLIANT){
> > > -                        const int abs_level= FFABS(level);
> > > -                        if(abs_level<=MAX_LEVEL && run<=MAX_RUN){
> > > -                            const int run1= run - rl->max_run[last][abs_level] - 1;
> > > -                            if(abs_level <= rl->max_level[last][run]){
> > > -                                av_log(s->avctx, AV_LOG_ERROR, "illegal 3. esc, vlc encoding possible\n");
> > > -                                return -1;
> > > -                            }
> > > -                            if(s->error_recognition > FF_ER_COMPLIANT){
> > > -                                if(abs_level <= rl->max_level[last][run]*2){
> > > -                                    av_log(s->avctx, AV_LOG_ERROR, "illegal 3. esc, esc 1 encoding possible\n");
> > > -                                    return -1;
> > > -                                }
> > > -                                if(run1 >= 0 && abs_level <= rl->max_level[last][run1]){
> > > -                                    av_log(s->avctx, AV_LOG_ERROR, "illegal 3. esc, esc 2 encoding possible\n");
> > > -                                    return -1;
> > > -                                }
> > > -                            }
> > > -                        }
> > > -                    }
> > > -#endif
> > >                      if (level>0) level= level * qmul + qadd;
> > >                      else         level= level * qmul - qadd;
> > >  
> > 
> > id like to keep this hunk, not sure about the other 2
> 
> To be honest, You always wish to keep cruft lying around.  

Iam the maintainer of this file and i prefer to keep this code. Its
not cruft, its disabled and usefull for debuging and it might become
enabled again if that is usefull for some case.


> This code has
> been rotting there untouched for seven years or more!  Nobody will touch
> it during the next seven years either ...

I guess you dont even know what this code does let alone who used
it during these 7 years.

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If a bugfix only changes things apparently unrelated to the bug with no
further explanation, that is a good sign that the bugfix is wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091228/9ce2d1a9/attachment.pgp>



More information about the ffmpeg-devel mailing list