diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-01-16 01:26:52 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-01-16 01:26:52 +0000 |
commit | 3700d8002809defe16f555490007fa69c3ddcfc9 (patch) | |
tree | 2fd5ba1a54bc7ef2ea2be490c23559559486c742 /libavformat/avc.c | |
parent | 71e685b0183b17e43da3959e620fe22afbe8a64c (diff) | |
download | ffmpeg-3700d8002809defe16f555490007fa69c3ddcfc9.tar.gz |
support h264 extradata with 0x000001 startcode
Originally committed as revision 16627 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avc.c')
-rw-r--r-- | libavformat/avc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/avc.c b/libavformat/avc.c index cd15ca7ce7..6ecea38a47 100644 --- a/libavformat/avc.c +++ b/libavformat/avc.c @@ -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; |