]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/movtextdec.c
opus: move the entropy decoding functions to opus_rc.c
[ffmpeg] / libavcodec / movtextdec.c
index abf8711a9c06c42e26a2981a2139cb6b5e7809db..a33fff7518c537ee5a05016ac379375385de8e1a 100644 (file)
@@ -471,6 +471,10 @@ static int mov_text_decode_frame(AVCodecContext *avctx,
             tsmb_type = AV_RB32(tsmb);
             tsmb += 4;
 
+            if (tsmb_size == 0) {
+              return AVERROR_INVALIDDATA;
+            }
+
             if (tsmb_size == 1) {
                 if (m->tracksize + 16 > avpkt->size)
                     break;