comparison common.c @ 1795:920e6381e1fe libavcodec

2 byte shorter userdata for mpeg4 in the past it was startcode,string,00,7F,startcode now it is startcode,string,stratcode both are mpeg4 compliant, as according to the standard the userdata lasts until the next 00 00 01 (startcode prefix) but some very primitive decoders which simply skip until the first 00 byte and then expect the next valid startcode might fail with the old variant, just a theory though (didnt test if quicktime can decode it now)
author michael
date Sun, 08 Feb 2004 22:52:35 +0000
parents b7340afa261a
children 45a1592dadca
comparison
equal deleted inserted replaced
1794:d133b4ad0620 1795:920e6381e1fe
102 #endif 102 #endif
103 } 103 }
104 104
105 #ifdef CONFIG_ENCODERS 105 #ifdef CONFIG_ENCODERS
106 106
107 void put_string(PutBitContext * pbc, char *s) 107 void put_string(PutBitContext * pbc, char *s, int put_zero)
108 { 108 {
109 while(*s){ 109 while(*s){
110 put_bits(pbc, 8, *s); 110 put_bits(pbc, 8, *s);
111 s++; 111 s++;
112 } 112 }
113 put_bits(pbc, 8, 0); 113 if(put_zero)
114 put_bits(pbc, 8, 0);
114 } 115 }
115 116
116 /* bit input functions */ 117 /* bit input functions */
117 118
118 #endif //CONFIG_ENCODERS 119 #endif //CONFIG_ENCODERS