---
libavcodec/4xm.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 21bde52..0a28890 100644
--- a/libavcodec/4xm.c
+++ b/libavcodec/4xm.c
@@ -328,6 +328,8 @@ static void decode_p_block(FourXContext *f, uint16_t *dst,
uint16_t *src, int lo
assert(code>=0 && code<=6);
if(code == 0){
+ if(*f->bytestream == NULL)
+ return;
src += f->mv[ *f->bytestream++ ];
if(start > src || src > end){
av_log(f->avctx, AV_LOG_ERROR, "mv out of pic\n");
--
1.7.4.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel