aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dpx.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-05 01:33:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-05 01:33:52 +0200
commitfb726ef09a40d4ba4ca4e823f868b0f869a73bcd (patch)
tree8aef219c9372097bc6e7565eed31a62df3f85c99 /libavcodec/dpx.c
parent8cb7d20567052e205406cee5efe98c7269184942 (diff)
downloadandroid_external_ffmpeg-fb726ef09a40d4ba4ca4e823f868b0f869a73bcd.tar.gz
android_external_ffmpeg-fb726ef09a40d4ba4ca4e823f868b0f869a73bcd.tar.bz2
android_external_ffmpeg-fb726ef09a40d4ba4ca4e823f868b0f869a73bcd.zip
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.c4
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)