Otherwise the h263p decoder can try to copy overread bytes, even though
buffer is NULL.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 6a69a175e7b5c5393528ed0f5753e41573fa0df2)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
... | ... |
@@ -815,6 +815,7 @@ static void clear_context(MpegEncContext *s) |
815 | 815 |
|
816 | 816 |
s->parse_context.buffer = NULL; |
817 | 817 |
s->parse_context.buffer_size = 0; |
818 |
+ s->parse_context.overread = 0; |
|
818 | 819 |
s->bitstream_buffer = NULL; |
819 | 820 |
s->allocated_bitstream_buffer_size = 0; |
820 | 821 |
s->picture = NULL; |