# HG changeset patch # User bcoudurier # Date 1232069212 0 # Node ID 765fe37ec45b4461879c32285f05c172ee6c5219 # Parent deddee77e4bca160f0654c82148ddebe966e48c9 support h264 extradata with 0x000001 startcode diff -r deddee77e4bc -r 765fe37ec45b avc.c --- 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;