• diego's avatar
    Fix bug caused by difference in stride and picture width. · b595ab68
    diego authored
    When a frame is allocated using libschroedinger routines, the frame data size
    does not match the actual frame size if the width is not a multiple of 16. So
    we cannot do a straightforward memcpy of the frame returned by libschroedinger
    into the FFmpeg picture as the stride differs from the width.
    
    Fix this bug by allocating for the libschroedinger frame with the dimensions
    in AVCodecContext within libavcodec and passing the frame to libschroedinger.
    
    patch by Anuradha Suraparaju, anuradha rd.bbc.co uk
    
    
    git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19653 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
    b595ab68
libschroedinger.c 4.38 KB