From 34f3f6d1299103d0dbf04c12d3638dc8f522a38b Mon Sep 17 00:00:00 2001
From: Kostya Shishkov <kostya.shishkov@gmail.com>
Date: Tue, 13 Jan 2009 08:00:37 +0000
Subject: [PATCH] Cinepak strip ID is a single byte

Originally committed as revision 16575 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/cinepak.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cinepak.c b/libavcodec/cinepak.c
index 78ddde2eb90..57a9fa56b67 100644
--- a/libavcodec/cinepak.c
+++ b/libavcodec/cinepak.c
@@ -358,7 +358,7 @@ static int cinepak_decode (CinepakContext *s)
         if ((s->data + 12) > eod)
             return -1;
 
-        s->strips[i].id = AV_RB16 (s->data);
+        s->strips[i].id = s->data[0];
         s->strips[i].y1 = y0;
         s->strips[i].x1 = 0;
         s->strips[i].y2 = y0 + AV_RB16 (&s->data[8]);
-- 
GitLab