[Ffmpeg-cvslog] CVS: ffmpeg/libavformat movenc.c,1.65,1.66
Baptiste Coudurier CVS
bcoudurier
Fri Apr 14 11:54:20 CEST 2006
Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv15269/libavformat
Modified Files:
movenc.c
Log Message:
get avcC profile and level indication from sps (from handbrake)
Index: movenc.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/movenc.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- movenc.c 13 Apr 2006 13:21:20 -0000 1.65
+++ movenc.c 14 Apr 2006 09:54:17 -0000 1.66
@@ -433,13 +433,6 @@
buf = track->vosData;
end = track->vosData + track->vosLen;
- put_byte(pb, 1); /* version */
- put_byte(pb, 77); /* profile */
- put_byte(pb, 64); /* profile compat */
- put_byte(pb, 30); /* level */
- put_byte(pb, 0xff); /* 6 bits reserved (111111) + 2 bits nal size length - 1 (11) */
- put_byte(pb, 0xe1); /* 3 bits reserved (111) + 5 bits number of sps (00001) */
-
/* look for sps and pps */
while (buf < end) {
unsigned int size;
@@ -457,6 +450,14 @@
}
assert(sps);
assert(pps);
+
+ put_byte(pb, 1); /* version */
+ put_byte(pb, sps[1]); /* profile */
+ put_byte(pb, sps[2]); /* profile compat */
+ put_byte(pb, sps[3]); /* level */
+ put_byte(pb, 0xff); /* 6 bits reserved (111111) + 2 bits nal size length - 1 (11) */
+ put_byte(pb, 0xe1); /* 3 bits reserved (111) + 5 bits number of sps (00001) */
+
put_be16(pb, sps_size);
put_buffer(pb, sps, sps_size);
put_byte(pb, 1); /* number of pps */
More information about the ffmpeg-cvslog
mailing list