Revision 48aecf5a libavcodec/h264_mp4toannexb_bsf.c

View differences:

libavcodec/h264_mp4toannexb_bsf.c
41 41
    if (!offset)
42 42
        AV_WB32(*poutbuf+sps_pps_size, 1);
43 43
    else {
44
        (*poutbuf+offset)[0] = (*poutbuf+offset)[1] = 0;
45
        (*poutbuf+offset)[2] = 1;
44
        (*poutbuf+offset+sps_pps_size)[0] = (*poutbuf+offset+sps_pps_size)[1] = 0;
45
        (*poutbuf+offset+sps_pps_size)[2] = 1;
46 46
    }
47 47
}
48 48

  

Also available in: Unified diff