Mercurial > libavformat.hg
changeset 4229:765fe37ec45b libavformat
support h264 extradata with 0x000001 startcode
author | bcoudurier |
---|---|
date | Fri, 16 Jan 2009 01:26:52 +0000 |
parents | deddee77e4bc |
children | de3cb095285c |
files | avc.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/avc.c Fri Jan 16 01:22:30 2009 +0000 +++ b/avc.c Fri Jan 16 01:26:52 2009 +0000 @@ -97,7 +97,8 @@ { if (len > 6) { /* check for h264 start code */ - if (AV_RB32(data) == 0x00000001) { + if (AV_RB32(data) == 0x00000001 || + AV_RB24(data) == 0x000001) { uint8_t *buf=NULL, *end, *start; uint32_t sps_size=0, pps_size=0; uint8_t *sps=0, *pps=0;