Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 12235:e08d65897115 | 12236:cabcd751b1e5 |
|---|---|
| 125 h->sei_recovery_frame_cnt = -1; | 125 h->sei_recovery_frame_cnt = -1; |
| 126 h->sei_dpb_output_delay = 0; | 126 h->sei_dpb_output_delay = 0; |
| 127 h->sei_cpb_removal_delay = -1; | 127 h->sei_cpb_removal_delay = -1; |
| 128 h->sei_buffering_period_present = 0; | 128 h->sei_buffering_period_present = 0; |
| 129 | 129 |
| 130 if (!buf_size) | |
| 131 return 0; | |
| 132 | |
| 130 for(;;) { | 133 for(;;) { |
| 131 int src_length, dst_length, consumed; | 134 int src_length, dst_length, consumed; |
| 132 buf = ff_find_start_code(buf, buf_end, &state); | 135 buf = ff_find_start_code(buf, buf_end, &state); |
| 133 if(buf >= buf_end) | 136 if(buf >= buf_end) |
| 134 break; | 137 break; |
