[FFmpeg-cvslog] avcodec/qdrw: skip long comment for now

Paul B Mahol git at videolan.org
Fri Jan 13 22:23:04 EET 2017


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jan 13 20:18:36 2017 +0100| [2eaee6e79bfb1d495181aaa0e54b8c955c473f0e] | committer: Paul B Mahol

avcodec/qdrw: skip long comment for now

Fixes part of #5918.

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavcodec/qdrw.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c
index 828cfea..65914fa 100644
--- a/libavcodec/qdrw.c
+++ b/libavcodec/qdrw.c
@@ -37,6 +37,8 @@ enum QuickdrawOpcodes {
     PACKBITSRGN,
     DIRECTBITSRECT,
     DIRECTBITSRGN,
+    SHORTCOMMENT = 0x00A0,
+    LONGCOMMENT,
 
     EOP = 0x00FF,
 };
@@ -297,6 +299,10 @@ static int decode_frame(AVCodecContext *avctx,
                 return ret;
             *got_frame = 1;
             break;
+        case LONGCOMMENT:
+            bytestream2_get_be16(&gbc);
+            bytestream2_skip(&gbc, bytestream2_get_be16(&gbc));
+            break;
         default:
             av_log(avctx, AV_LOG_TRACE, "Unknown 0x%04X opcode\n", opcode);
             break;



More information about the ffmpeg-cvslog mailing list