[FFmpeg-cvslog] avcodec/parser: assert that there is a past buffer if theres a reference into the past
Michael Niedermayer
git at videolan.org
Fri Jun 16 03:32:41 EEST 2017
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Jun 16 01:35:35 2017 +0200| [c0607d88ee1fbd5a5272abe415ee83cc10310021] | committer: Michael Niedermayer
avcodec/parser: assert that there is a past buffer if theres a reference into the past
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c0607d88ee1fbd5a5272abe415ee83cc10310021
---
libavcodec/parser.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/parser.c b/libavcodec/parser.c
index 30373c7622..670680ea7c 100644
--- a/libavcodec/parser.c
+++ b/libavcodec/parser.c
@@ -285,6 +285,8 @@ int ff_combine_frame(ParseContext *pc, int next,
return -1;
}
+ av_assert0(next >= 0 || pc->buffer);
+
*buf_size =
pc->overread_index = pc->index + next;
More information about the ffmpeg-cvslog
mailing list