[FFmpeg-cvslog] avcodec/smc: use unchecked reader for call after checking remaining size
Paul B Mahol
git at videolan.org
Sat Aug 14 11:34:44 EEST 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Aug 14 10:04:25 2021 +0200| [b6156dd665bd87b7f05627e87d51ee878d824dc7] | committer: Paul B Mahol
avcodec/smc: use unchecked reader for call after checking remaining size
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b6156dd665bd87b7f05627e87d51ee878d824dc7
---
libavcodec/smc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/smc.c b/libavcodec/smc.c
index c18e7f6555..a50c2b47f2 100644
--- a/libavcodec/smc.c
+++ b/libavcodec/smc.c
@@ -138,7 +138,7 @@ static int smc_decode_stream(SmcContext *s)
return AVERROR_INVALIDDATA;
}
- opcode = bytestream2_get_byte(&s->gb);
+ opcode = bytestream2_get_byteu(&s->gb);
switch (opcode & 0xF0) {
/* skip n blocks */
case 0x00:
More information about the ffmpeg-cvslog
mailing list