mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-02 20:35:37 +02:00
avcodec/exr : add support for long name flag and be more explicit about unsupported flag
based-on patch by Carl Eugen Hoyos Fix ticket 6994
This commit is contained in:
parent
ffabff1baa
commit
ea03f295ec
@ -1350,12 +1350,14 @@ static int decode_header(EXRContext *s, AVFrame *frame)
|
|||||||
|
|
||||||
flags = bytestream2_get_le24(&s->gb);
|
flags = bytestream2_get_le24(&s->gb);
|
||||||
|
|
||||||
if (flags == 0x00)
|
if (flags & 0x02)
|
||||||
s->is_tile = 0;
|
|
||||||
else if (flags & 0x02)
|
|
||||||
s->is_tile = 1;
|
s->is_tile = 1;
|
||||||
else{
|
if (flags & 0x08) {
|
||||||
avpriv_report_missing_feature(s->avctx, "flags %d", flags);
|
avpriv_report_missing_feature(s->avctx, "deep data");
|
||||||
|
return AVERROR_PATCHWELCOME;
|
||||||
|
}
|
||||||
|
if (flags & 0x10) {
|
||||||
|
avpriv_report_missing_feature(s->avctx, "multipart");
|
||||||
return AVERROR_PATCHWELCOME;
|
return AVERROR_PATCHWELCOME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user