Ticket #7436: patchdshowbottomup.diff

File patchdshowbottomup.diff, 809 bytes (added by Carl Eugen Hoyos, 8 years ago)
  • libavdevice/dshow.c

    diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
    index de910c0..757f7a5 100644
    a b dshow_add_device(AVFormatContext *avctx,  
    996996            par->codec_id = AV_CODEC_ID_RAWVIDEO;
    997997            if (bih->biCompression == BI_RGB || bih->biCompression == BI_BITFIELDS) {
    998998                par->bits_per_coded_sample = bih->biBitCount;
     999                if (par->height < 0) {
     1000                    par->height *= -1;
     1001                } else {
    9991002                par->extradata = av_malloc(9 + AV_INPUT_BUFFER_PADDING_SIZE);
    10001003                if (par->extradata) {
    10011004                    par->extradata_size = 9;
    10021005                    memcpy(par->extradata, "BottomUp", 9);
    10031006                }
     1007                }
    10041008            }
    10051009        }
    10061010    } else {