diff options
author | Michael Niedermayer | 2013-10-05 01:33:52 +0200 |
---|---|---|
committer | Michael Niedermayer | 2013-10-05 01:33:52 +0200 |
commit | fb726ef09a40d4ba4ca4e823f868b0f869a73bcd (patch) | |
tree | 8aef219c9372097bc6e7565eed31a62df3f85c99 /libavcodec/dpx.c | |
parent | 8cb7d20567052e205406cee5efe98c7269184942 (diff) |
avcodec/dpx: fix reading of the packing field
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dpx.c')
-rw-r--r-- | libavcodec/dpx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c index 11f692fea4..59845c700d 100644 --- a/libavcodec/dpx.c +++ b/libavcodec/dpx.c @@ -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) |