Remove unnessecary SPS & PPS writing code

This commit is contained in:
Kfir Itzhak 2013-12-30 17:02:04 +02:00
parent e652441996
commit f33d27b9c1
1 changed files with 0 additions and 11 deletions

View File

@ -158,17 +158,6 @@ int X264MP4Writer::Open() {
return -12; return -12;
} }
/* Write SPS & PPS */
for(int i=0;i<i_nals;i++) {
if(nals[i].i_type == NAL_SPS) {
/* Write SPS */
MP4AddH264SequenceParameterSet(mp4h, mp4vtid, nals[i].p_payload+4, nals[i].i_payload-4);
} else if (nals[i].i_type == NAL_PPS) {
/* Write PPS */
MP4AddH264PictureParameterSet(mp4h, mp4vtid, nals[i].p_payload+4, nals[i].i_payload-4);
}
}
bOpen = true; bOpen = true;
return 0; return 0;