Commit c47decea authored by bcoudurier's avatar bcoudurier

support h264 extradata with 0x000001 startcode

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16627 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0d74068c
......@@ -97,7 +97,8 @@ int ff_isom_write_avcc(ByteIOContext *pb, const uint8_t *data, int len)
{
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment