[FFmpeg-devel] [PATCH]Fix r21154
    Carl Eugen Hoyos 
    cehoyos
       
    Fri Jan 15 01:57:31 CET 2010
    
    
  
Michael Niedermayer <michaelni <at> gmx.at> writes:
> On Fri, Jan 15, 2010 at 01:26:43AM +0100, Carl Eugen Hoyos wrote:
> > I suspect my commit to fix issue 1474 was not entirely correct.
> >
> > Please comment, Carl Eugen
> 
> >  raw.c    |    1 +
> >  rawdec.c |    2 --
> >  2 files changed, 1 insertion(+), 2 deletions(-)
> > ef1c20b48ebe617e9f9dd74ae9f4a5fa1325ed16  patchraw.diff
> 
> ok
Applied.
I just wanted to send following hunk to fix the black band on top (this seems to
work fine for issue 1684 and 1685), but unfortunately, the offset is not exactly
correct: Two or three pixels from the left edge appear on the right:-(
Any ideas?
Thank you, Carl Eugen
Index: libavcodec/rawdec.c
===================================================================
--- libavcodec/rawdec.c (revision 21218)
+++ libavcodec/rawdec.c (working copy)
@@ -137,6 +137,9 @@
         buf= dst;
     }
+    if(avctx->codec_tag == MKTAG('A', 'V', 'R', 'n'))
+        buf += buf_size - context->length;
    
    
More information about the ffmpeg-devel
mailing list