Mercurial > libavcodec.hg
comparison h264.c @ 2762:64333ef1ca21 libavcodec
non-avc h264 stream problems patch by ("Ronald S. Bultje" rbultje, ronald bitfreak net)
| author | michael |
|---|---|
| date | Thu, 09 Jun 2005 20:01:02 +0000 |
| parents | a7925aaeea1e |
| children | 01ed2c3b8f08 |
comparison
equal
deleted
inserted
replaced
| 2761:a1f71e17054c | 2762:64333ef1ca21 |
|---|---|
| 7341 // Do not reparse avcC | 7341 // Do not reparse avcC |
| 7342 h->got_avcC = 1; | 7342 h->got_avcC = 1; |
| 7343 } | 7343 } |
| 7344 | 7344 |
| 7345 if(!h->is_avc && s->avctx->extradata_size && s->picture_number==0){ | 7345 if(!h->is_avc && s->avctx->extradata_size && s->picture_number==0){ |
| 7346 if(0 < decode_nal_units(h, s->avctx->extradata, s->avctx->extradata_size) ) | 7346 if(decode_nal_units(h, s->avctx->extradata, s->avctx->extradata_size) < 0) |
| 7347 return -1; | 7347 return -1; |
| 7348 } | 7348 } |
| 7349 | 7349 |
| 7350 buf_index=decode_nal_units(h, buf, buf_size); | 7350 buf_index=decode_nal_units(h, buf, buf_size); |
| 7351 if(buf_index < 0) | 7351 if(buf_index < 0) |
