Mercurial > libavcodec.hg
changeset 12236:cabcd751b1e5 libavcodec
In h264 parser, return immediately if buf_size is 0, avoid printing
erroneous message for last frame.
author | bcoudurier |
---|---|
date | Fri, 23 Jul 2010 00:34:09 +0000 |
parents | e08d65897115 |
children | f0c4dc49c8f1 |
files | h264_parser.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/h264_parser.c Fri Jul 23 00:07:16 2010 +0000 +++ b/h264_parser.c Fri Jul 23 00:34:09 2010 +0000 @@ -127,6 +127,9 @@ h->sei_cpb_removal_delay = -1; h->sei_buffering_period_present = 0; + if (!buf_size) + return 0; + for(;;) { int src_length, dst_length, consumed; buf = ff_find_start_code(buf, buf_end, &state);