mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-29 06:00:36 +00:00
exr: support for reading pixelAspectRatio
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
16a433d68b
commit
07df939aa3
@ -300,6 +300,17 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
continue;
|
||||
}
|
||||
|
||||
// Process the pixelAspectRatio variable
|
||||
if (check_header_variable(avctx, &buf, buf_end, "pixelAspectRatio", "float", 31, &variable_buffer_data_size) >= 0) {
|
||||
if (!variable_buffer_data_size)
|
||||
return -1;
|
||||
|
||||
avctx->sample_aspect_ratio = av_d2q(av_int2float(AV_RL32(buf)), 255);
|
||||
|
||||
buf += variable_buffer_data_size;
|
||||
continue;
|
||||
}
|
||||
|
||||
// Process the compression variable
|
||||
if (check_header_variable(avctx, &buf, buf_end, "compression", "compression", 29, &variable_buffer_data_size) >= 0) {
|
||||
if (!variable_buffer_data_size)
|
||||
|
Loading…
Reference in New Issue
Block a user