[FFmpeg-cvslog] avcodec/dpx: fix reading of the packing field

Michael Niedermayer git at videolan.org
Sat Oct 5 02:03:44 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct  5 01:33:52 2013 +0200| [fb726ef09a40d4ba4ca4e823f868b0f869a73bcd] | committer: Michael Niedermayer

avcodec/dpx: fix reading of the packing field

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fb726ef09a40d4ba4ca4e823f868b0f869a73bcd
---

 libavcodec/dpx.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index 11f692f..59845c7 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)



More information about the ffmpeg-cvslog mailing list