mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/exr: read fps from metadata too
This commit is contained in:
parent
da857099e9
commit
98191135e0
@ -1634,6 +1634,17 @@ static int decode_header(EXRContext *s, AVFrame *frame)
|
||||
bytestream2_get_buffer(&s->gb, key, FFMIN(sizeof(key) - 1, var_size));
|
||||
av_dict_set(&metadata, "writer", key, 0);
|
||||
|
||||
continue;
|
||||
} else if ((var_size = check_header_variable(s, "framesPerSecond",
|
||||
"rational", 33)) >= 0) {
|
||||
if (!var_size) {
|
||||
ret = AVERROR_INVALIDDATA;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
s->avctx->framerate.num = bytestream2_get_le32(&s->gb);
|
||||
s->avctx->framerate.den = bytestream2_get_le32(&s->gb);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user