avformat/mov: Correct opus-in-mp4 pre-skip to be uint16_t versus int16_t.
authorDale Curtis <dalecurtis@chromium.org>
Tue, 21 Aug 2018 22:42:31 +0000 (15:42 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 23 Aug 2018 14:00:26 +0000 (16:00 +0200)
This field is a uint16_t, see docs:
http://opus-codec.org/docs/opus_in_isobmff.html#4.3.2

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c

index f368209..d66f4e3 100644 (file)
@@ -6614,7 +6614,7 @@ static int mov_read_dops(MOVContext *c, AVIOContext *pb, MOVAtom atom)
     const int OPUS_SEEK_PREROLL_MS = 80;
     AVStream *st;
     size_t size;
-    int16_t pre_skip;
+    uint16_t pre_skip;
 
     if (c->fc->nb_streams < 1)
         return 0;