Revision 3700d800 libavformat/avc.c

View differences:

libavformat/avc.c
97 97
{
98 98
    if (len > 6) {
99 99
        /* check for h264 start code */
100
        if (AV_RB32(data) == 0x00000001) {
100
        if (AV_RB32(data) == 0x00000001 ||
101
            AV_RB24(data) == 0x000001) {
101 102
            uint8_t *buf=NULL, *end, *start;
102 103
            uint32_t sps_size=0, pps_size=0;
103 104
            uint8_t *sps=0, *pps=0;

Also available in: Unified diff