/*
- * Copyright (c) 2007 Benoit Fouet <benoit.fouet@purplelabs.com>
+ * H.264 MP4 to Annex B byte stream format filter
+ * Copyright (c) 2007 Benoit Fouet <benoit.fouet@free.fr>
*
* This file is part of FFmpeg.
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/intreadwrite.h"
#include "avcodec.h"
typedef struct H264BSFContext {
if (!offset)
AV_WB32(*poutbuf+sps_pps_size, 1);
else {
- (*poutbuf+offset)[0] = (*poutbuf+offset)[1] = 0;
- (*poutbuf+offset)[2] = 1;
+ (*poutbuf+offset+sps_pps_size)[0] = (*poutbuf+offset+sps_pps_size)[1] = 0;
+ (*poutbuf+offset+sps_pps_size)[2] = 1;
}
}