Revision 1b5282a2 libavcodec/dpx.c

View differences:

libavcodec/dpx.c
68 68

  
69 69
    unsigned int rgbBuffer;
70 70

  
71
    if (avpkt->size <= 0x324) {
71
    if (avpkt->size <= 1634) {
72 72
        av_log(avctx, AV_LOG_ERROR, "Packet too small for DPX header\n");
73 73
        return AVERROR_INVALIDDATA;
74 74
    }
......
106 106
    avctx->bits_per_raw_sample =
107 107
    bits_per_color = buf[0];
108 108

  
109
    buf += 825;
110
    avctx->sample_aspect_ratio.num = read32(&buf, endian);
111
    avctx->sample_aspect_ratio.den = read32(&buf, endian);
112

  
109 113
    switch (descriptor) {
110 114
        case 51: // RGBA
111 115
            elements = 4;

Also available in: Unified diff