mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-31 20:02:42 +00:00
avcodec/dpx: fix reading of the packing field
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8cb7d20567
commit
fb726ef09a
@ -125,9 +125,9 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
avctx->bits_per_raw_sample =
|
||||
bits_per_color = buf[0];
|
||||
buf++;
|
||||
packing = *((uint16_t*)buf);
|
||||
packing = read16(&buf, endian);
|
||||
|
||||
buf += 824;
|
||||
buf += 822;
|
||||
avctx->sample_aspect_ratio.num = read32(&buf, endian);
|
||||
avctx->sample_aspect_ratio.den = read32(&buf, endian);
|
||||
if (avctx->sample_aspect_ratio.num > 0 && avctx->sample_aspect_ratio.den > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user