Revision 77cb22fa libavformat/flic.c

View differences:

libavformat/flic.c
94 94
    st->codec->width = AV_RL16(&header[0x08]);
95 95
    st->codec->height = AV_RL16(&header[0x0A]);
96 96

  
97
    if (!st->codec->width || !st->codec->height)
98
        return AVERROR_INVALIDDATA;
97
    if (!st->codec->width || !st->codec->height) {
98
        /* Ugly hack needed for the following sample: */
99
        /* http://samples.mplayerhq.hu/fli-flc/fli-bugs/specular.flc */
100
        av_log(s, AV_LOG_WARNING,
101
               "File with no specified width/height. Trying 640x480.\n");
102
        st->codec->width  = 640;
103
        st->codec->height = 480;
104
    }
99 105

  
100 106
    /* send over the whole 128-byte FLIC header */
101 107
    st->codec->extradata_size = FLIC_HEADER_SIZE;

Also available in: Unified diff