Mercurial > libavcodec.hg
diff h264_parser.c @ 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 | 51abd780bda6 |
children |
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);