[libav-bugs] [Bug 556] New: libavcodec/mpegvideo.c: Does not allow stride changes

bugzilla at libav.org bugzilla at libav.org
Fri Aug 23 12:11:58 CEST 2013


http://bugzilla.libav.org/show_bug.cgi?id=556

           Summary: libavcodec/mpegvideo.c: Does not allow stride changes
           Product: Libav
           Version: git HEAD
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: libavcodec
        AssignedTo: bugzilla at libav.org
        ReportedBy: slomo at circular-chaos.org


Hi,

This is the code in question in libavcodec/mpegvideo.c:

    if (s->linesize && (s->linesize   != pic->f.linesize[0] ||
                        s->uvlinesize != pic->f.linesize[1])) {
        av_log(s->avctx, AV_LOG_ERROR,
               "get_buffer() failed (stride changed)\n");
        free_frame_buffer(s, pic);
        return -1;
    }


Due to this it is not possible to use different strides for different frames.
What exactly is the reason for enforcing the same stride everywhere, from
looking at the code it seems like it should be possible to use the correct
picture's stride in the various places instead.

-- 
Configure bugmail: http://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list