winlin

fix bug of aac demux, make same to ffmpeg, demux success

1 -ts+aac+h264+data audio pts:168696991 dts(calc):168696991 dts:0 size: 584  
2 -ts+aac+h264+data video pts:168704280 dts(calc):168700500 dts:168700500 size: 35795  
3 -ts+aac+h264+data video pts:168702836 dts(calc):168704280 dts:168704280 size: 4108  
4 -ts+aac+h264+data video pts:168691586 dts(calc):168691586 dts:0 size: 425  
5 -ts+aac+h264+data video pts:168695366 dts(calc):168695366 dts:0 size: 466  
6 -ts+aac+h264+data video pts:168699146 dts(calc):168699146 dts:0 size: 353  
7 -ts+aac+h264+data video pts:168734250 dts(calc):168702836 dts:168702836 size: 4225  
8 -ts+aac+h264+data audio pts:168705351 dts(calc):168705351 dts:0 size: 1611  
9 -ts+aac+h264+data video pts:168723000 dts(calc):168723000 dts:0 size: 416  
10 -ts+aac+h264+data video pts:168726780 dts(calc):168726780 dts:0 size: 486  
11 -ts+aac+h264+data video pts:168730470 dts(calc):168730470 dts:0 size: 408  
12 -ts+aac+h264+data video pts:168732896 dts(calc):168734250 dts:168734250 size: 5018  
13 -ts+aac+h264+data video pts:168738030 dts(calc):168738030 dts:0 size: 450  
14 -ts+aac+h264+data video pts:168725336 dts(calc):168725336 dts:0 size: 466  
15 -ts+aac+h264+data audio pts:168726248 dts(calc):168726248 dts:0 size: 1497  
16 -ts+aac+h264+data video pts:168729116 dts(calc):168729116 dts:0 size: 384  
17 -ts+aac+h264+data video pts:168764220 dts(calc):168732896 dts:168732896 size: 6680  
18 -ts+aac+h264+data video pts:168736586 dts(calc):168736586 dts:0 size: 844  
19 -ts+aac+h264+data video pts:168756750 dts(calc):168756750 dts:0 size: 773  
20 -ts+aac+h264+data video pts:168760530 dts(calc):168760530 dts:0 size: 509  
21 -ts+aac+h264+data audio pts:168730762 dts(calc):168730762 dts:0 size: 1383  
22 -ts+aac+h264+data video pts:168762866 dts(calc):168764220 dts:168764220 size: 7197  
23 -ts+aac+h264+data video pts:168768000 dts(calc):168768000 dts:0 size: 546  
24 -ts+aac+h264+data video pts:168755396 dts(calc):168755396 dts:0 size: 574  
25 -ts+aac+h264+data video pts:168759086 dts(calc):168759086 dts:0 size: 415  
26 -ts+aac+h264+data video pts:168794280 dts(calc):168762866 dts:168762866 size: 3442  
27 -ts+aac+h264+data video pts:168766646 dts(calc):168766646 dts:0 size: 334  
28 -ts+aac+h264+data audio pts:168768044 dts(calc):168768044 dts:0 size: 1454  
29 -ts+aac+h264+data video pts:168770336 dts(calc):168770336 dts:0 size: 353  
30 -ts+aac+h264+data video pts:168790500 dts(calc):168790500 dts:0 size: 298  
31 -ts+aac+h264+data video pts:168792836 dts(calc):168794280 dts:168794280 size: 954  
32 -ts+aac+h264+data video pts:168797970 dts(calc):168797970 dts:0 size: 303  
33 -ts+aac+h264+data video pts:168801750 dts(calc):168801750 dts:0 size: 329  
34 -ts+aac+h264+data video pts:168789146 dts(calc):168789146 dts:0 size: 302  
35 -ts+aac+h264+data audio pts:168788942 dts(calc):168788942 dts:0 size: 1513  
36 -ts+aac+h264+data video pts:168800396 dts(calc):168792836 dts:168792836 size: 746  
37 -ts+aac+h264+data video pts:168796616 dts(calc):168796616 dts:0 size: 473  
38 -ts+aac+h264+data video pts:168804086 dts(calc):168800396 dts:168800396 size: 3674  
39 -ts+aac+h264+data video pts:168824250 dts(calc):168804086 dts:168804086 size: 3116  
40 -ts+aac+h264+data video pts:168828030 dts(calc):168824250 dts:168824250 size: 3064  
41 -ts+aac+h264+data audio pts:168793456 dts(calc):168793456 dts:0 size: 1504  
42 -ts+aac+h264+data video pts:168831720 dts(calc):168828030 dts:168828030 size: 2899  
43 -ts+aac+h264+data video pts:168835500 dts(calc):168831720 dts:168831720 size: 3231  
44 -ts+aac+h264+data video pts:168822896 dts(calc):168835500 dts:168835500 size: 3877  
45 -ts+aac+h264+data video pts:168826586 dts(calc):168822896 dts:168822896 size: 2984  
46 -ts+aac+h264+data video pts:168830366 dts(calc):168826586 dts:168826586 size: 6415  
47 -ts+aac+h264+data video pts:168834146 dts(calc):168830366 dts:168830366 size: 29200  
48 -ts+aac+h264+data audio pts:168830738 dts(calc):168830738 dts:0 size: 1540  
49 -ts+aac+h264+data video pts:168854220 dts(calc):168834146 dts:168834146 size: 4102  
50 -ts+aac+h264+data video pts:168858000 dts(calc):168854220 dts:168854220 size: 6944  
51 -ts+aac+h264+data video pts:168861780 dts(calc):168858000 dts:168858000 size: 9061  
52 -ts+aac+h264+data video pts:168865470 dts(calc):168861780 dts:168861780 size: 9760  
53 -ts+aac+h264+data video pts:168869250 dts(calc):168865470 dts:168865470 size: 14741  
54 -ts+aac+h264+data audio pts:168835252 dts(calc):168835252 dts:0 size: 1607  
55 -ts+aac+h264+data video pts:168860336 dts(calc):168869250 dts:168869250 size: 15711  
56 -ts+aac+h264+data video pts:168856646 dts(calc):168856646 dts:0 size: 2181  
57 -ts+aac+h264+data video pts:168891750 dts(calc):168860336 dts:168860336 size: 19063  
58 -ts+aac+h264+data video pts:168864116 dts(calc):168864116 dts:0 size: 2345  
59 -ts+aac+h264+data video pts:168867896 dts(calc):168867896 dts:0 size: 2597  
60 -ts+aac+h264+data video pts:168887970 dts(calc):168887970 dts:0 size: 2003  
61 -ts+aac+h264+data audio pts:168856150 dts(calc):168856150 dts:0 size: 1575  
62 -ts+aac+h264+data video pts:168890396 dts(calc):168891750 dts:168891750 size: 16911  
63 -ts+aac+h264+data video pts:168895530 dts(calc):168895530 dts:0 size: 1196  
64 -ts+aac+h264+data video pts:168899220 dts(calc):168899220 dts:0 size: 1181  
65 -ts+aac+h264+data video pts:168886616 dts(calc):168886616 dts:0 size: 891  
66 -ts+aac+h264+data video pts:168921720 dts(calc):168890396 dts:168890396 size: 15388  
67 -ts+aac+h264+data audio pts:168893432 dts(calc):168893432 dts:0 size: 1401  
68 -ts+aac+h264+data video pts:168894086 dts(calc):168894086 dts:0 size: 982  
69 -ts+aac+h264+data video pts:168897866 dts(calc):168897866 dts:0 size: 928  
70 -ts+aac+h264+data video pts:168901646 dts(calc):168901646 dts:0 size: 737  
71 -ts+aac+h264+data video pts:168920366 dts(calc):168921720 dts:168921720 size: 14519  
72 -ts+aac+h264+data video pts:168925500 dts(calc):168925500 dts:0 size: 900  
73 -ts+aac+h264+data video pts:168929280 dts(calc):168929280 dts:0 size: 878  
74 -ts+aac+h264+data audio pts:168897946 dts(calc):168897946 dts:0 size: 1546  
75 -ts+aac+h264+data video pts:168932970 dts(calc):168932970 dts:0 size: 698  
76 -ts+aac+h264+data video pts:168935396 dts(calc):168920366 dts:168920366 size: 11824  
77 -ts+aac+h264+data video pts:168924146 dts(calc):168924146 dts:0 size: 837  
78 -ts+aac+h264+data video pts:168927836 dts(calc):168927836 dts:0 size: 896  
79 -ts+aac+h264+data video pts:168931616 dts(calc):168931616 dts:0 size: 671  
80 -ts+aac+h264+data video pts:168966720 dts(calc):168935396 dts:168935396 size: 8523  
81 -ts+aac+h264+data audio pts:168935228 dts(calc):168935228 dts:0 size: 1398  
82 -ts+aac+h264+data video pts:168955470 dts(calc):168955470 dts:0 size: 773  
83 -ts+aac+h264+data video pts:168959250 dts(calc):168959250 dts:0 size: 755  
84 -ts+aac+h264+data video pts:168963030 dts(calc):168963030 dts:0 size: 643  
85 -ts+aac+h264+data video pts:168961586 dts(calc):168966720 dts:168966720 size: 4648  
86 -ts+aac+h264+data video pts:168954116 dts(calc):168954116 dts:0 size: 626  
87 -ts+aac+h264+data audio pts:168956126 dts(calc):168956126 dts:0 size: 1426  
88 -ts+aac+h264+data video pts:168957896 dts(calc):168957896 dts:0 size: 536  
89 -ts+aac+h264+data video pts:168965366 dts(calc):168961586 dts:168961586 size: 3771  
90 -ts+aac+h264+data video pts:168985530 dts(calc):168965366 dts:168965366 size: 4494  
91 -ts+aac+h264+data video pts:168989220 dts(calc):168985530 dts:168985530 size: 5560  
92 -ts+aac+h264+data video pts:168993000 dts(calc):168989220 dts:168989220 size: 6541  
93 -ts+aac+h264+data video pts:168996780 dts(calc):168993000 dts:168993000 size: 7636  
94 -ts+aac+h264+data audio pts:168960640 dts(calc):168960640 dts:0 size: 1470  
95 -ts+aac+h264+data video pts:169000470 dts(calc):168996780 dts:168996780 size: 6685  
96 -ts+aac+h264+data video pts:168987866 dts(calc):169000470 dts:169000470 size: 6791  
97 -ts+aac+h264+data video pts:168991646 dts(calc):168987866 dts:168987866 size: 11730  
98 -ts+aac+h264+data video pts:168995336 dts(calc):168991646 dts:168991646 size: 14252  
99 -ts+aac+h264+data video pts:169022970 dts(calc):168995336 dts:168995336 size: 9386  
100 -ts+aac+h264+data audio pts:168997922 dts(calc):168997922 dts:0 size: 1641  
101 -ts+aac+h264+data video pts:168999116 dts(calc):168999116 dts:0 size: 809  
102 -ts+aac+h264+data video pts:169019280 dts(calc):169019280 dts:0 size: 631  
103 -ts+aac+h264+data video pts:169030530 dts(calc):169022970 dts:169022970 size: 7316  
104 -ts+aac+h264+data video pts:169026750 dts(calc):169026750 dts:0 size: 594  
105 -ts+aac+h264+data video pts:169021616 dts(calc):169030530 dts:169030530 size: 6070  
106 -ts+aac+h264+data video pts:169017836 dts(calc):169017836 dts:0 size: 674  
107 -ts+aac+h264+data audio pts:169018820 dts(calc):169018820 dts:0 size: 1468  
108 -ts+aac+h264+data video pts:169029086 dts(calc):169021616 dts:169021616 size: 5808  
109 -ts+aac+h264+data video pts:169025396 dts(calc):169025396 dts:0 size: 958  
110 -ts+aac+h264+data video pts:169032866 dts(calc):169029086 dts:169029086 size: 5959  
111 -ts+aac+h264+data video pts:169053030 dts(calc):169032866 dts:169032866 size: 5991  
112 -ts+aac+h264+data video pts:169056720 dts(calc):169053030 dts:169053030 size: 10941  
113 -ts+aac+h264+data audio pts:169023334 dts(calc):169023334 dts:0 size: 1471  
114 -ts+aac+h264+data video pts:169064280 dts(calc):169056720 dts:169056720 size: 7867  
115 -ts+aac+h264+data video pts:169060500 dts(calc):169060500 dts:0 size: 4550  
116 -ts+aac+h264+data video pts:169051586 dts(calc):169064280 dts:169064280 size: 10501  
117 -ts+aac+h264+data video pts:169055366 dts(calc):169051586 dts:169051586 size: 10772  
118 -ts+aac+h264+data video pts:169059146 dts(calc):169055366 dts:169055366 size: 12594  
119 -ts+aac+h264+data video pts:169083000 dts(calc):169059146 dts:169059146 size: 12274  
120 -ts+aac+h264+data audio pts:169060616 dts(calc):169060616 dts:0 size: 1551  
121 -ts+aac+h264+data video pts:169062836 dts(calc):169062836 dts:0 size: 2145  
122 -ts+aac+h264+data video pts:169098030 dts(calc):169083000 dts:169083000 size: 10764  
123 -ts+aac+h264+data video pts:169086780 dts(calc):169086780 dts:0 size: 952  
124 -ts+aac+h264+data video pts:169090470 dts(calc):169090470 dts:0 size: 977  
125 -ts+aac+h264+data video pts:169094250 dts(calc):169094250 dts:0 size: 830  
126 -ts+aac+h264+data video pts:169096586 dts(calc):169098030 dts:169098030 size: 2899  
127 -ts+aac+h264+data audio pts:169065130 dts(calc):169065130 dts:0 size: 1457  
128 -ts+aac+h264+data video pts:169085336 dts(calc):169085336 dts:0 size: 388  
129 -ts+aac+h264+data video pts:169089116 dts(calc):169089116 dts:0 size: 291  
130 -ts+aac+h264+data video pts:169092896 dts(calc):169092896 dts:0 size: 275  
131 -ts+aac+h264+data video pts:169124220 dts(calc):169096586 dts:169096586 size: 676  
132 -ts+aac+h264+data video pts:169116750 dts(calc):169116750 dts:0 size: 249  
133 -ts+aac+h264+data audio pts:169086028 dts(calc):169086028 dts:0 size: 1400  
134 -ts+aac+h264+data video pts:169120530 dts(calc):169120530 dts:0 size: 217  
135 -ts+aac+h264+data video pts:169128000 dts(calc):169124220 dts:169124220 size: 75644  
136 -ts+aac+h264+data video pts:169126646 dts(calc):169128000 dts:169128000 size: 2805  
137 -ts+aac+h264+data video pts:169131780 dts(calc):169131780 dts:0 size: 229  
138 -ts+aac+h264+data video pts:169119086 dts(calc):169119086 dts:0 size: 199  
139 -ts+aac+h264+data video pts:169122866 dts(calc):169122866 dts:0 size: 197  
140 -ts+aac+h264+data audio pts:169123310 dts(calc):169123310 dts:0 size: 1683  
141 -ts+aac+h264+data video pts:169157970 dts(calc):169126646 dts:169126646 size: 4670  
142 -ts+aac+h264+data video pts:169130336 dts(calc):169130336 dts:0 size: 501  
143 -ts+aac+h264+data video pts:169150500 dts(calc):169150500 dts:0 size: 672  
144 -ts+aac+h264+data video pts:169154280 dts(calc):169154280 dts:0 size: 422  
145 -ts+aac+h264+data video pts:169156616 dts(calc):169157970 dts:169157970 size: 6008  
146 -ts+aac+h264+data audio pts:169127824 dts(calc):169127824 dts:0 size: 1470  
147 -ts+aac+h264+data video pts:169161750 dts(calc):169161750 dts:0 size: 682  
148 -ts+aac+h264+data video pts:169149146 dts(calc):169149146 dts:0 size: 712  
149 -ts+aac+h264+data video pts:169152836 dts(calc):169152836 dts:0 size: 638  
150 -ts+aac+h264+data video pts:169188030 dts(calc):169156616 dts:169156616 size: 11908  
151 -ts+aac+h264+data video pts:169160396 dts(calc):169160396 dts:0 size: 1508  
152 -ts+aac+h264+data video pts:169164086 dts(calc):169164086 dts:0 size: 1455  
153 -ts+aac+h264+data audio pts:169148722 dts(calc):169148722 dts:0 size: 1383  
154 -ts+aac+h264+data video pts:169184250 dts(calc):169184250 dts:0 size: 1169  
155 -ts+aac+h264+data video pts:169186586 dts(calc):169188030 dts:169188030 size: 11158  
156 -ts+aac+h264+data video pts:169191720 dts(calc):169191720 dts:0 size: 685  
157 -ts+aac+h264+data video pts:169195500 dts(calc):169195500 dts:0 size: 652  
158 -ts+aac+h264+data video pts:169182896 dts(calc):169182896 dts:0 size: 558  
159 -ts+aac+h264+data audio pts:169186004 dts(calc):169186004 dts:0 size: 1535  
160 -ts+aac+h264+data video pts:169218000 dts(calc):169186586 dts:169186586 size: 2086  
161 -ts+aac+h264+data video pts:169190366 dts(calc):169190366 dts:0 size: 420  
162 -ts+aac+h264+data video pts:169194146 dts(calc):169194146 dts:0 size: 465  
163 -ts+aac+h264+data video pts:169214220 dts(calc):169214220 dts:0 size: 407  
164 -ts+aac+h264+data video pts:169229250 dts(calc):169218000 dts:169218000 size: 284  
165 -ts+aac+h264+data video pts:169221780 dts(calc):169221780 dts:0 size: 288  
166 -ts+aac+h264+data audio pts:169190518 dts(calc):169190518 dts:0 size: 1403  
167 -ts+aac+h264+data video pts:169225470 dts(calc):169225470 dts:0 size: 234  
168 -ts+aac+h264+data video pts:169216646 dts(calc):169229250 dts:169229250 size: 59016  
169 -ts+aac+h264+data video pts:169224116 dts(calc):169216646 dts:169216646 size: 4100  
170 -ts+aac+h264+data video pts:169220336 dts(calc):169220336 dts:0 size: 1047  
171 -ts+aac+h264+data video pts:169247970 dts(calc):169224116 dts:169224116 size: 10317  
172 -ts+aac+h264+data video pts:169227896 dts(calc):169227896 dts:0 size: 2748  
173 -ts+aac+h264+data audio pts:169227800 dts(calc):169227800 dts:0 size: 1617  
174 -ts+aac+h264+data video pts:169251750 dts(calc):169247970 dts:169247970 size: 11029  
175 -ts+aac+h264+data video pts:169250396 dts(calc):169251750 dts:169251750 size: 4083  
176 -ts+aac+h264+data video pts:169255530 dts(calc):169255530 dts:0 size: 1481  
177 -ts+aac+h264+data video pts:169259220 dts(calc):169259220 dts:0 size: 642  
178 -ts+aac+h264+data video pts:169263000 dts(calc):169263000 dts:0 size: 499  
179 -ts+aac+h264+data audio pts:169248697 dts(calc):169248697 dts:0 size: 1478  
180 -ts+aac+h264+data video pts:169281720 dts(calc):169250396 dts:169250396 size: 1760  
181 -ts+aac+h264+data video pts:169254086 dts(calc):169254086 dts:0 size: 499  
182 -ts+aac+h264+data video pts:169257866 dts(calc):169257866 dts:0 size: 510  
183 -ts+aac+h264+data video pts:169261646 dts(calc):169261646 dts:0 size: 425  
184 -ts+aac+h264+data video pts:169285500 dts(calc):169281720 dts:169281720 size: 2071  
185 -ts+aac+h264+data video pts:169292970 dts(calc):169285500 dts:169285500 size: 4220  
186 -ts+aac+h264+data audio pts:169253211 dts(calc):169253211 dts:0 size: 1373  
187 -ts+aac+h264+data video pts:169289280 dts(calc):169289280 dts:0 size: 2596  
188 -ts+aac+h264+data video pts:169280366 dts(calc):169292970 dts:169292970 size: 13800  
189 -ts+aac+h264+data video pts:169284146 dts(calc):169280366 dts:169280366 size: 8452  
190 -ts+aac+h264+data video pts:169291616 dts(calc):169284146 dts:169284146 size: 11802  
191 -ts+aac+h264+data video pts:169287836 dts(calc):169287836 dts:0 size: 3014  
192 -ts+aac+h264+data audio pts:169290493 dts(calc):169290493 dts:0 size: 1497  
193 -ts+aac+h264+data video pts:169295396 dts(calc):169291616 dts:169291616 size: 10497  
194 -ts+aac+h264+data video pts:169323030 dts(calc):169295396 dts:169295396 size: 10094  
195 -ts+aac+h264+data video pts:169315470 dts(calc):169315470 dts:0 size: 1955  
196 -ts+aac+h264+data video pts:169319250 dts(calc):169319250 dts:0 size: 931  
197 -ts+aac+h264+data video pts:169321586 dts(calc):169323030 dts:169323030 size: 2733  
198 -ts+aac+h264+data video pts:169326720 dts(calc):169326720 dts:0 size: 570  
199 -ts+aac+h264+data audio pts:169295007 dts(calc):169295007 dts:0 size: 1501  
200 -ts+aac+h264+data video pts:169314116 dts(calc):169314116 dts:0 size: 590  
201 -ts+aac+h264+data video pts:169317896 dts(calc):169317896 dts:0 size: 418  
202 -ts+aac+h264+data video pts:169349220 dts(calc):169321586 dts:169321586 size: 838  
203 -ts+aac+h264+data video pts:169325366 dts(calc):169325366 dts:0 size: 341  
204 -ts+aac+h264+data video pts:169345530 dts(calc):169345530 dts:0 size: 402  
205 -ts+aac+h264+data audio pts:169315905 dts(calc):169315905 dts:0 size: 1380 1 +ts+aac+h264+data audio pts:168696991 dts:168696991 size: 286
  2 +ts+aac+h264+data audio pts:168701170 dts:168701170 size: 298
  3 +ts+aac+h264+data video pts:168704280 dts:168700500 size: 35795
  4 +ts+aac+h264+data video pts:168702836 dts:168704280 size: 4108
  5 +ts+aac+h264+data video pts:168691586 dts:168691586 size: 425
  6 +ts+aac+h264+data video pts:168695366 dts:168695366 size: 466
  7 +ts+aac+h264+data video pts:168699146 dts:168699146 size: 353
  8 +ts+aac+h264+data video pts:168734250 dts:168702836 size: 4225
  9 +ts+aac+h264+data audio pts:168705351 dts:168705351 size: 297
  10 +ts+aac+h264+data audio pts:168709530 dts:168709530 size: 297
  11 +ts+aac+h264+data audio pts:168713709 dts:168713709 size: 297
  12 +ts+aac+h264+data audio pts:168717888 dts:168717888 size: 354
  13 +ts+aac+h264+data audio pts:168722067 dts:168722067 size: 366
  14 +ts+aac+h264+data video pts:168723000 dts:168723000 size: 416
  15 +ts+aac+h264+data video pts:168726780 dts:168726780 size: 486
  16 +ts+aac+h264+data video pts:168730470 dts:168730470 size: 408
  17 +ts+aac+h264+data video pts:168732896 dts:168734250 size: 5018
  18 +ts+aac+h264+data video pts:168738030 dts:168738030 size: 450
  19 +ts+aac+h264+data video pts:168725336 dts:168725336 size: 466
  20 +ts+aac+h264+data audio pts:168726248 dts:168726248 size: 304
  21 +ts+aac+h264+data audio pts:168730427 dts:168730427 size: 282
  22 +ts+aac+h264+data audio pts:168734606 dts:168734606 size: 298
  23 +ts+aac+h264+data audio pts:168738785 dts:168738785 size: 320
  24 +ts+aac+h264+data audio pts:168742964 dts:168742964 size: 293
  25 +ts+aac+h264+data video pts:168729116 dts:168729116 size: 384
  26 +ts+aac+h264+data video pts:168764220 dts:168732896 size: 6680
  27 +ts+aac+h264+data video pts:168736586 dts:168736586 size: 844
  28 +ts+aac+h264+data video pts:168756750 dts:168756750 size: 773
  29 +ts+aac+h264+data video pts:168760530 dts:168760530 size: 509
  30 +ts+aac+h264+data audio pts:168730762 dts:168730762 size: 278
  31 +ts+aac+h264+data audio pts:168734941 dts:168734941 size: 277
  32 +ts+aac+h264+data audio pts:168739120 dts:168739120 size: 266
  33 +ts+aac+h264+data audio pts:168743299 dts:168743299 size: 286
  34 +ts+aac+h264+data audio pts:168747478 dts:168747478 size: 276
  35 +ts+aac+h264+data video pts:168762866 dts:168764220 size: 7197
  36 +ts+aac+h264+data video pts:168768000 dts:168768000 size: 546
  37 +ts+aac+h264+data video pts:168755396 dts:168755396 size: 574
  38 +ts+aac+h264+data video pts:168759086 dts:168759086 size: 415
  39 +ts+aac+h264+data video pts:168794280 dts:168762866 size: 3442
  40 +ts+aac+h264+data video pts:168766646 dts:168766646 size: 334
  41 +ts+aac+h264+data audio pts:168768044 dts:168768044 size: 284
  42 +ts+aac+h264+data audio pts:168772223 dts:168772223 size: 301
  43 +ts+aac+h264+data audio pts:168776402 dts:168776402 size: 284
  44 +ts+aac+h264+data audio pts:168780581 dts:168780581 size: 287
  45 +ts+aac+h264+data audio pts:168784760 dts:168784760 size: 298
  46 +ts+aac+h264+data video pts:168770336 dts:168770336 size: 353
  47 +ts+aac+h264+data video pts:168790500 dts:168790500 size: 298
  48 +ts+aac+h264+data video pts:168792836 dts:168794280 size: 954
  49 +ts+aac+h264+data video pts:168797970 dts:168797970 size: 303
  50 +ts+aac+h264+data video pts:168801750 dts:168801750 size: 329
  51 +ts+aac+h264+data video pts:168789146 dts:168789146 size: 302
  52 +ts+aac+h264+data audio pts:168788942 dts:168788942 size: 361
  53 +ts+aac+h264+data audio pts:168793121 dts:168793121 size: 309
  54 +ts+aac+h264+data audio pts:168797300 dts:168797300 size: 277
  55 +ts+aac+h264+data audio pts:168801479 dts:168801479 size: 282
  56 +ts+aac+h264+data audio pts:168805658 dts:168805658 size: 284
  57 +ts+aac+h264+data video pts:168800396 dts:168792836 size: 746
  58 +ts+aac+h264+data video pts:168796616 dts:168796616 size: 473
  59 +ts+aac+h264+data video pts:168804086 dts:168800396 size: 3674
  60 +ts+aac+h264+data video pts:168824250 dts:168804086 size: 3116
  61 +ts+aac+h264+data video pts:168828030 dts:168824250 size: 3064
  62 +ts+aac+h264+data audio pts:168793456 dts:168793456 size: 286
  63 +ts+aac+h264+data audio pts:168797635 dts:168797635 size: 286
  64 +ts+aac+h264+data audio pts:168801814 dts:168801814 size: 303
  65 +ts+aac+h264+data audio pts:168805993 dts:168805993 size: 301
  66 +ts+aac+h264+data audio pts:168810172 dts:168810172 size: 328
  67 +ts+aac+h264+data video pts:168831720 dts:168828030 size: 2899
  68 +ts+aac+h264+data video pts:168835500 dts:168831720 size: 3231
  69 +ts+aac+h264+data video pts:168822896 dts:168835500 size: 3877
  70 +ts+aac+h264+data video pts:168826586 dts:168822896 size: 2984
  71 +ts+aac+h264+data video pts:168830366 dts:168826586 size: 6415
  72 +ts+aac+h264+data video pts:168834146 dts:168830366 size: 29200
  73 +ts+aac+h264+data audio pts:168830738 dts:168830738 size: 290
  74 +ts+aac+h264+data audio pts:168834917 dts:168834917 size: 291
  75 +ts+aac+h264+data audio pts:168839096 dts:168839096 size: 356
  76 +ts+aac+h264+data audio pts:168843275 dts:168843275 size: 317
  77 +ts+aac+h264+data audio pts:168847454 dts:168847454 size: 286
  78 +ts+aac+h264+data video pts:168854220 dts:168834146 size: 4102
  79 +ts+aac+h264+data video pts:168858000 dts:168854220 size: 6944
  80 +ts+aac+h264+data video pts:168861780 dts:168858000 size: 9061
  81 +ts+aac+h264+data video pts:168865470 dts:168861780 size: 9760
  82 +ts+aac+h264+data video pts:168869250 dts:168865470 size: 14741
  83 +ts+aac+h264+data audio pts:168835252 dts:168835252 size: 274
  84 +ts+aac+h264+data audio pts:168839431 dts:168839431 size: 364
  85 +ts+aac+h264+data audio pts:168843610 dts:168843610 size: 317
  86 +ts+aac+h264+data audio pts:168847789 dts:168847789 size: 284
  87 +ts+aac+h264+data audio pts:168851968 dts:168851968 size: 368
  88 +ts+aac+h264+data video pts:168860336 dts:168869250 size: 15711
  89 +ts+aac+h264+data video pts:168856646 dts:168856646 size: 2181
  90 +ts+aac+h264+data video pts:168891750 dts:168860336 size: 19063
  91 +ts+aac+h264+data video pts:168864116 dts:168864116 size: 2345
  92 +ts+aac+h264+data video pts:168867896 dts:168867896 size: 2597
  93 +ts+aac+h264+data video pts:168887970 dts:168887970 size: 2003
  94 +ts+aac+h264+data audio pts:168856150 dts:168856150 size: 357
  95 +ts+aac+h264+data audio pts:168860329 dts:168860329 size: 334
  96 +ts+aac+h264+data audio pts:168864508 dts:168864508 size: 306
  97 +ts+aac+h264+data audio pts:168868687 dts:168868687 size: 290
  98 +ts+aac+h264+data audio pts:168872866 dts:168872866 size: 288
  99 +ts+aac+h264+data video pts:168890396 dts:168891750 size: 16911
  100 +ts+aac+h264+data video pts:168895530 dts:168895530 size: 1196
  101 +ts+aac+h264+data video pts:168899220 dts:168899220 size: 1181
  102 +ts+aac+h264+data video pts:168886616 dts:168886616 size: 891
  103 +ts+aac+h264+data video pts:168921720 dts:168890396 size: 15388
  104 +ts+aac+h264+data audio pts:168893432 dts:168893432 size: 285
  105 +ts+aac+h264+data audio pts:168897611 dts:168897611 size: 278
  106 +ts+aac+h264+data audio pts:168901790 dts:168901790 size: 280
  107 +ts+aac+h264+data audio pts:168905969 dts:168905969 size: 276
  108 +ts+aac+h264+data audio pts:168910148 dts:168910148 size: 282
  109 +ts+aac+h264+data video pts:168894086 dts:168894086 size: 982
  110 +ts+aac+h264+data video pts:168897866 dts:168897866 size: 928
  111 +ts+aac+h264+data video pts:168901646 dts:168901646 size: 737
  112 +ts+aac+h264+data video pts:168920366 dts:168921720 size: 14519
  113 +ts+aac+h264+data video pts:168925500 dts:168925500 size: 900
  114 +ts+aac+h264+data video pts:168929280 dts:168929280 size: 878
  115 +ts+aac+h264+data audio pts:168897946 dts:168897946 size: 282
  116 +ts+aac+h264+data audio pts:168902125 dts:168902125 size: 274
  117 +ts+aac+h264+data audio pts:168906304 dts:168906304 size: 347
  118 +ts+aac+h264+data audio pts:168910483 dts:168910483 size: 341
  119 +ts+aac+h264+data audio pts:168914662 dts:168914662 size: 302
  120 +ts+aac+h264+data video pts:168932970 dts:168932970 size: 698
  121 +ts+aac+h264+data video pts:168935396 dts:168920366 size: 11824
  122 +ts+aac+h264+data video pts:168924146 dts:168924146 size: 837
  123 +ts+aac+h264+data video pts:168927836 dts:168927836 size: 896
  124 +ts+aac+h264+data video pts:168931616 dts:168931616 size: 671
  125 +ts+aac+h264+data video pts:168966720 dts:168935396 size: 8523
  126 +ts+aac+h264+data audio pts:168935228 dts:168935228 size: 285
  127 +ts+aac+h264+data audio pts:168939407 dts:168939407 size: 290
  128 +ts+aac+h264+data audio pts:168943586 dts:168943586 size: 301
  129 +ts+aac+h264+data audio pts:168947765 dts:168947765 size: 257
  130 +ts+aac+h264+data audio pts:168951944 dts:168951944 size: 265
  131 +ts+aac+h264+data video pts:168955470 dts:168955470 size: 773
  132 +ts+aac+h264+data video pts:168959250 dts:168959250 size: 755
  133 +ts+aac+h264+data video pts:168963030 dts:168963030 size: 643
  134 +ts+aac+h264+data video pts:168961586 dts:168966720 size: 4648
  135 +ts+aac+h264+data video pts:168954116 dts:168954116 size: 626
  136 +ts+aac+h264+data audio pts:168956126 dts:168956126 size: 279
  137 +ts+aac+h264+data audio pts:168960305 dts:168960305 size: 279
  138 +ts+aac+h264+data audio pts:168964484 dts:168964484 size: 280
  139 +ts+aac+h264+data audio pts:168968663 dts:168968663 size: 269
  140 +ts+aac+h264+data audio pts:168972842 dts:168972842 size: 319
  141 +ts+aac+h264+data video pts:168957896 dts:168957896 size: 536
  142 +ts+aac+h264+data video pts:168965366 dts:168961586 size: 3771
  143 +ts+aac+h264+data video pts:168985530 dts:168965366 size: 4494
  144 +ts+aac+h264+data video pts:168989220 dts:168985530 size: 5560
  145 +ts+aac+h264+data video pts:168993000 dts:168989220 size: 6541
  146 +ts+aac+h264+data video pts:168996780 dts:168993000 size: 7636
  147 +ts+aac+h264+data audio pts:168960640 dts:168960640 size: 287
  148 +ts+aac+h264+data audio pts:168964819 dts:168964819 size: 279
  149 +ts+aac+h264+data audio pts:168968998 dts:168968998 size: 272
  150 +ts+aac+h264+data audio pts:168973177 dts:168973177 size: 314
  151 +ts+aac+h264+data audio pts:168977356 dts:168977356 size: 318
  152 +ts+aac+h264+data video pts:169000470 dts:168996780 size: 6685
  153 +ts+aac+h264+data video pts:168987866 dts:169000470 size: 6791
  154 +ts+aac+h264+data video pts:168991646 dts:168987866 size: 11730
  155 +ts+aac+h264+data video pts:168995336 dts:168991646 size: 14252
  156 +ts+aac+h264+data video pts:169022970 dts:168995336 size: 9386
  157 +ts+aac+h264+data audio pts:168997922 dts:168997922 size: 269
  158 +ts+aac+h264+data audio pts:169002101 dts:169002101 size: 365
  159 +ts+aac+h264+data audio pts:169006280 dts:169006280 size: 360
  160 +ts+aac+h264+data audio pts:169010459 dts:169010459 size: 339
  161 +ts+aac+h264+data audio pts:169014638 dts:169014638 size: 308
  162 +ts+aac+h264+data video pts:168999116 dts:168999116 size: 809
  163 +ts+aac+h264+data video pts:169019280 dts:169019280 size: 631
  164 +ts+aac+h264+data video pts:169030530 dts:169022970 size: 7316
  165 +ts+aac+h264+data video pts:169026750 dts:169026750 size: 594
  166 +ts+aac+h264+data video pts:169021616 dts:169030530 size: 6070
  167 +ts+aac+h264+data video pts:169017836 dts:169017836 size: 674
  168 +ts+aac+h264+data audio pts:169018820 dts:169018820 size: 295
  169 +ts+aac+h264+data audio pts:169022999 dts:169022999 size: 330
  170 +ts+aac+h264+data audio pts:169027178 dts:169027178 size: 291
  171 +ts+aac+h264+data audio pts:169031357 dts:169031357 size: 271
  172 +ts+aac+h264+data audio pts:169035536 dts:169035536 size: 281
  173 +ts+aac+h264+data video pts:169029086 dts:169021616 size: 5808
  174 +ts+aac+h264+data video pts:169025396 dts:169025396 size: 958
  175 +ts+aac+h264+data video pts:169032866 dts:169029086 size: 5959
  176 +ts+aac+h264+data video pts:169053030 dts:169032866 size: 5991
  177 +ts+aac+h264+data video pts:169056720 dts:169053030 size: 10941
  178 +ts+aac+h264+data audio pts:169023334 dts:169023334 size: 270
  179 +ts+aac+h264+data audio pts:169027513 dts:169027513 size: 277
  180 +ts+aac+h264+data audio pts:169031692 dts:169031692 size: 264
  181 +ts+aac+h264+data audio pts:169035871 dts:169035871 size: 279
  182 +ts+aac+h264+data audio pts:169040050 dts:169040050 size: 381
  183 +ts+aac+h264+data video pts:169064280 dts:169056720 size: 7867
  184 +ts+aac+h264+data video pts:169060500 dts:169060500 size: 4550
  185 +ts+aac+h264+data video pts:169051586 dts:169064280 size: 10501
  186 +ts+aac+h264+data video pts:169055366 dts:169051586 size: 10772
  187 +ts+aac+h264+data video pts:169059146 dts:169055366 size: 12594
  188 +ts+aac+h264+data video pts:169083000 dts:169059146 size: 12274
  189 +ts+aac+h264+data audio pts:169060616 dts:169060616 size: 362
  190 +ts+aac+h264+data audio pts:169064795 dts:169064795 size: 305
  191 +ts+aac+h264+data audio pts:169068974 dts:169068974 size: 283
  192 +ts+aac+h264+data audio pts:169073153 dts:169073153 size: 285
  193 +ts+aac+h264+data audio pts:169077332 dts:169077332 size: 316
  194 +ts+aac+h264+data video pts:169062836 dts:169062836 size: 2145
  195 +ts+aac+h264+data video pts:169098030 dts:169083000 size: 10764
  196 +ts+aac+h264+data video pts:169086780 dts:169086780 size: 952
  197 +ts+aac+h264+data video pts:169090470 dts:169090470 size: 977
  198 +ts+aac+h264+data video pts:169094250 dts:169094250 size: 830
  199 +ts+aac+h264+data video pts:169096586 dts:169098030 size: 2899
  200 +ts+aac+h264+data audio pts:169065130 dts:169065130 size: 288
  201 +ts+aac+h264+data audio pts:169069309 dts:169069309 size: 313
  202 +ts+aac+h264+data audio pts:169073488 dts:169073488 size: 299
  203 +ts+aac+h264+data audio pts:169077667 dts:169077667 size: 272
  204 +ts+aac+h264+data audio pts:169081846 dts:169081846 size: 285
  205 +ts+aac+h264+data video pts:169085336 dts:169085336 size: 388
  206 +ts+aac+h264+data video pts:169089116 dts:169089116 size: 291
  207 +ts+aac+h264+data video pts:169092896 dts:169092896 size: 275
  208 +ts+aac+h264+data video pts:169124220 dts:169096586 size: 676
  209 +ts+aac+h264+data video pts:169116750 dts:169116750 size: 249
  210 +ts+aac+h264+data audio pts:169086028 dts:169086028 size: 287
  211 +ts+aac+h264+data audio pts:169090207 dts:169090207 size: 276
  212 +ts+aac+h264+data audio pts:169094386 dts:169094386 size: 272
  213 +ts+aac+h264+data audio pts:169098565 dts:169098565 size: 285
  214 +ts+aac+h264+data audio pts:169102744 dts:169102744 size: 280
  215 +ts+aac+h264+data video pts:169120530 dts:169120530 size: 217
  216 +ts+aac+h264+data video pts:169128000 dts:169124220 size: 75644
  217 +ts+aac+h264+data video pts:169126646 dts:169128000 size: 2805
  218 +ts+aac+h264+data video pts:169131780 dts:169131780 size: 229
  219 +ts+aac+h264+data video pts:169119086 dts:169119086 size: 199
  220 +ts+aac+h264+data video pts:169122866 dts:169122866 size: 197
  221 +ts+aac+h264+data audio pts:169123310 dts:169123310 size: 322
  222 +ts+aac+h264+data audio pts:169127489 dts:169127489 size: 384
  223 +ts+aac+h264+data audio pts:169131668 dts:169131668 size: 368
  224 +ts+aac+h264+data audio pts:169135847 dts:169135847 size: 301
  225 +ts+aac+h264+data audio pts:169140026 dts:169140026 size: 308
  226 +ts+aac+h264+data video pts:169157970 dts:169126646 size: 4670
  227 +ts+aac+h264+data video pts:169130336 dts:169130336 size: 501
  228 +ts+aac+h264+data video pts:169150500 dts:169150500 size: 672
  229 +ts+aac+h264+data video pts:169154280 dts:169154280 size: 422
  230 +ts+aac+h264+data video pts:169156616 dts:169157970 size: 6008
  231 +ts+aac+h264+data audio pts:169127824 dts:169127824 size: 309
  232 +ts+aac+h264+data audio pts:169132003 dts:169132003 size: 325
  233 +ts+aac+h264+data audio pts:169136182 dts:169136182 size: 300
  234 +ts+aac+h264+data audio pts:169140361 dts:169140361 size: 266
  235 +ts+aac+h264+data audio pts:169144540 dts:169144540 size: 270
  236 +ts+aac+h264+data video pts:169161750 dts:169161750 size: 682
  237 +ts+aac+h264+data video pts:169149146 dts:169149146 size: 712
  238 +ts+aac+h264+data video pts:169152836 dts:169152836 size: 638
  239 +ts+aac+h264+data video pts:169188030 dts:169156616 size: 11908
  240 +ts+aac+h264+data video pts:169160396 dts:169160396 size: 1508
  241 +ts+aac+h264+data video pts:169164086 dts:169164086 size: 1455
  242 +ts+aac+h264+data audio pts:169148722 dts:169148722 size: 270
  243 +ts+aac+h264+data audio pts:169152901 dts:169152901 size: 268
  244 +ts+aac+h264+data audio pts:169157080 dts:169157080 size: 282
  245 +ts+aac+h264+data audio pts:169161259 dts:169161259 size: 296
  246 +ts+aac+h264+data audio pts:169165438 dts:169165438 size: 267
  247 +ts+aac+h264+data video pts:169184250 dts:169184250 size: 1169
  248 +ts+aac+h264+data video pts:169186586 dts:169188030 size: 11158
  249 +ts+aac+h264+data video pts:169191720 dts:169191720 size: 685
  250 +ts+aac+h264+data video pts:169195500 dts:169195500 size: 652
  251 +ts+aac+h264+data video pts:169182896 dts:169182896 size: 558
  252 +ts+aac+h264+data audio pts:169186004 dts:169186004 size: 278
  253 +ts+aac+h264+data audio pts:169190183 dts:169190183 size: 282
  254 +ts+aac+h264+data audio pts:169194362 dts:169194362 size: 353
  255 +ts+aac+h264+data audio pts:169198541 dts:169198541 size: 346
  256 +ts+aac+h264+data audio pts:169202720 dts:169202720 size: 276
  257 +ts+aac+h264+data video pts:169218000 dts:169186586 size: 2086
  258 +ts+aac+h264+data video pts:169190366 dts:169190366 size: 420
  259 +ts+aac+h264+data video pts:169194146 dts:169194146 size: 465
  260 +ts+aac+h264+data video pts:169214220 dts:169214220 size: 407
  261 +ts+aac+h264+data video pts:169229250 dts:169218000 size: 284
  262 +ts+aac+h264+data video pts:169221780 dts:169221780 size: 288
  263 +ts+aac+h264+data audio pts:169190518 dts:169190518 size: 275
  264 +ts+aac+h264+data audio pts:169194697 dts:169194697 size: 293
  265 +ts+aac+h264+data audio pts:169198876 dts:169198876 size: 261
  266 +ts+aac+h264+data audio pts:169203055 dts:169203055 size: 295
  267 +ts+aac+h264+data audio pts:169207234 dts:169207234 size: 279
  268 +ts+aac+h264+data video pts:169225470 dts:169225470 size: 234
  269 +ts+aac+h264+data video pts:169216646 dts:169229250 size: 59016
  270 +ts+aac+h264+data video pts:169224116 dts:169216646 size: 4100
  271 +ts+aac+h264+data video pts:169220336 dts:169220336 size: 1047
  272 +ts+aac+h264+data video pts:169247970 dts:169224116 size: 10317
  273 +ts+aac+h264+data video pts:169227896 dts:169227896 size: 2748
  274 +ts+aac+h264+data audio pts:169227800 dts:169227800 size: 280
  275 +ts+aac+h264+data audio pts:169231979 dts:169231979 size: 278
  276 +ts+aac+h264+data audio pts:169236158 dts:169236158 size: 361
  277 +ts+aac+h264+data audio pts:169240337 dts:169240337 size: 354
  278 +ts+aac+h264+data audio pts:169244516 dts:169244516 size: 344
  279 +ts+aac+h264+data video pts:169251750 dts:169247970 size: 11029
  280 +ts+aac+h264+data video pts:169250396 dts:169251750 size: 4083
  281 +ts+aac+h264+data video pts:169255530 dts:169255530 size: 1481
  282 +ts+aac+h264+data video pts:169259220 dts:169259220 size: 642
  283 +ts+aac+h264+data video pts:169263000 dts:169263000 size: 499
  284 +ts+aac+h264+data audio pts:169248697 dts:169248697 size: 321
  285 +ts+aac+h264+data audio pts:169252876 dts:169252876 size: 301
  286 +ts+aac+h264+data audio pts:169257055 dts:169257055 size: 277
  287 +ts+aac+h264+data audio pts:169261234 dts:169261234 size: 318
  288 +ts+aac+h264+data audio pts:169265413 dts:169265413 size: 261
  289 +ts+aac+h264+data video pts:169281720 dts:169250396 size: 1760
  290 +ts+aac+h264+data video pts:169254086 dts:169254086 size: 499
  291 +ts+aac+h264+data video pts:169257866 dts:169257866 size: 510
  292 +ts+aac+h264+data video pts:169261646 dts:169261646 size: 425
  293 +ts+aac+h264+data video pts:169285500 dts:169281720 size: 2071
  294 +ts+aac+h264+data video pts:169292970 dts:169285500 size: 4220
  295 +ts+aac+h264+data audio pts:169253211 dts:169253211 size: 268
  296 +ts+aac+h264+data audio pts:169257390 dts:169257390 size: 289
  297 +ts+aac+h264+data audio pts:169261569 dts:169261569 size: 267
  298 +ts+aac+h264+data audio pts:169265748 dts:169265748 size: 269
  299 +ts+aac+h264+data audio pts:169269927 dts:169269927 size: 280
  300 +ts+aac+h264+data video pts:169289280 dts:169289280 size: 2596
  301 +ts+aac+h264+data video pts:169280366 dts:169292970 size: 13800
  302 +ts+aac+h264+data video pts:169284146 dts:169280366 size: 8452
  303 +ts+aac+h264+data video pts:169291616 dts:169284146 size: 11802
  304 +ts+aac+h264+data video pts:169287836 dts:169287836 size: 3014
  305 +ts+aac+h264+data audio pts:169290493 dts:169290493 size: 263
  306 +ts+aac+h264+data audio pts:169294672 dts:169294672 size: 310
  307 +ts+aac+h264+data audio pts:169298851 dts:169298851 size: 313
  308 +ts+aac+h264+data audio pts:169303030 dts:169303030 size: 331
  309 +ts+aac+h264+data audio pts:169307209 dts:169307209 size: 280
  310 +ts+aac+h264+data video pts:169295396 dts:169291616 size: 10497
  311 +ts+aac+h264+data video pts:169323030 dts:169295396 size: 10094
  312 +ts+aac+h264+data video pts:169315470 dts:169315470 size: 1955
  313 +ts+aac+h264+data video pts:169319250 dts:169319250 size: 931
  314 +ts+aac+h264+data video pts:169321586 dts:169323030 size: 2733
  315 +ts+aac+h264+data video pts:169326720 dts:169326720 size: 570
  316 +ts+aac+h264+data audio pts:169295007 dts:169295007 size: 330
  317 +ts+aac+h264+data audio pts:169299186 dts:169299186 size: 299
  318 +ts+aac+h264+data audio pts:169303365 dts:169303365 size: 289
  319 +ts+aac+h264+data audio pts:169307544 dts:169307544 size: 296
  320 +ts+aac+h264+data audio pts:169311723 dts:169311723 size: 287
  321 +ts+aac+h264+data video pts:169314116 dts:169314116 size: 590
  322 +ts+aac+h264+data video pts:169317896 dts:169317896 size: 418
  323 +ts+aac+h264+data video pts:169349220 dts:169321586 size: 838
  324 +ts+aac+h264+data video pts:169325366 dts:169325366 size: 341
  325 +ts+aac+h264+data video pts:169345530 dts:169345530 size: 402
  326 +ts+aac+h264+data audio pts:169315905 dts:169315905 size: 286
  327 +ts+aac+h264+data audio pts:169320084 dts:169320084 size: 278
  328 +ts+aac+h264+data audio pts:169324263 dts:169324263 size: 269
  329 +ts+aac+h264+data audio pts:169328442 dts:169328442 size: 271
  330 +ts+aac+h264+data audio pts:169332621 dts:169332621 size: 276
@@ -2013,9 +2013,6 @@ int consume(TSMessage* msg, AacMuxer* aac_muxer) @@ -2013,9 +2013,6 @@ int consume(TSMessage* msg, AacMuxer* aac_muxer)
2013 trace("ts+aac+h264 ignore empty message."); 2013 trace("ts+aac+h264 ignore empty message.");
2014 return ret; 2014 return ret;
2015 } 2015 }
2016 - trace("ts+aac+h264+data %s pts:%"PRId64" dts(calc):%"PRId64" dts:%"PRId64" size: %d",  
2017 - (msg->type == TSPidTypeVideo)? "video":"audio", msg->pts,  
2018 - (msg->dts == 0)? msg->pts : msg->dts, msg->dts, msg->packet_data_size);  
2019 2016
2020 char* last = msg->packet_data + msg->packet_data_size; 2017 char* last = msg->packet_data + msg->packet_data_size;
2021 2018
@@ -2026,6 +2023,7 @@ int consume(TSMessage* msg, AacMuxer* aac_muxer) @@ -2026,6 +2023,7 @@ int consume(TSMessage* msg, AacMuxer* aac_muxer)
2026 } 2023 }
2027 2024
2028 // parse AAC audio. 2025 // parse AAC audio.
  2026 + int64_t dts = -1;
2029 while (p < last) { 2027 while (p < last) {
2030 TSAacAdts aac; 2028 TSAacAdts aac;
2031 if ((ret = aac.parse(msg, p)) != 0) { 2029 if ((ret = aac.parse(msg, p)) != 0) {
@@ -2033,9 +2031,34 @@ int consume(TSMessage* msg, AacMuxer* aac_muxer) @@ -2033,9 +2031,34 @@ int consume(TSMessage* msg, AacMuxer* aac_muxer)
2033 } 2031 }
2034 trace("ts+aac audio raw data parsed, size: %d, 0x%02x 0x%02x 0x%02x 0x%02x", 2032 trace("ts+aac audio raw data parsed, size: %d, 0x%02x 0x%02x 0x%02x 0x%02x",
2035 aac.size, aac.at(0), aac.at(1), aac.at(2), aac.at(3)); 2033 aac.size, aac.at(0), aac.at(1), aac.at(2), aac.at(3));
  2034 +
  2035 + if (dts == -1) {
  2036 + dts = (msg->dts == 0)? msg->pts : msg->dts;
  2037 + } else {
  2038 + // see ffmpeg: avpriv_aac_parse_header
  2039 + // rdb = get_bits(gbc, 2); /* number_of_raw_data_blocks_in_frame */
  2040 + // hdr->samples = (rdb + 1) * 1024;
  2041 + int samples = (aac.number_of_raw_data_blocks_in_frame + 1) * 1024;
  2042 + static int sample_rates[] = {
  2043 + 96000, 88200, 64000, 48000, 44100, 32000,
  2044 + 24000, 22050, 16000, 12000, 11025, 8000,
  2045 + 1, 1, 1, 1
  2046 + };
  2047 + int sample_rate = sample_rates[aac.sampling_frequency_index];
  2048 +
  2049 + dts += samples * 90000 / sample_rate;
  2050 + }
  2051 +
  2052 + trace("ts+aac+h264+data %s pts:%"PRId64" dts:%"PRId64" size: %d",
  2053 + (msg->type == TSPidTypeVideo)? "video":"audio", dts, dts, aac.frame_length);
  2054 +
2036 // TODO: process audio. 2055 // TODO: process audio.
2037 } 2056 }
2038 - } else { 2057 + } else {
  2058 + trace("ts+aac+h264+data %s pts:%"PRId64" dts:%"PRId64" size: %d",
  2059 + (msg->type == TSPidTypeVideo)? "video":"audio", msg->pts,
  2060 + (msg->dts == 0)? msg->pts : msg->dts, msg->packet_data_size);
  2061 +
2039 // parse H264 video. 2062 // parse H264 video.
2040 while (p < last) { 2063 while (p < last) {
2041 TSH264Codec h264; 2064 TSH264Codec h264;
@@ -2044,6 +2067,7 @@ int consume(TSMessage* msg, AacMuxer* aac_muxer) @@ -2044,6 +2067,7 @@ int consume(TSMessage* msg, AacMuxer* aac_muxer)
2044 } 2067 }
2045 trace("ts+h264 video raw data parsed, size: %d, 0x%02x 0x%02x 0x%02x 0x%02x", 2068 trace("ts+h264 video raw data parsed, size: %d, 0x%02x 0x%02x 0x%02x 0x%02x",
2046 h264.size, h264.at(0), h264.at(1), h264.at(2), h264.at(3)); 2069 h264.size, h264.at(0), h264.at(1), h264.at(2), h264.at(3));
  2070 +
2047 // TODO: process video. 2071 // TODO: process video.
2048 } 2072 }
2049 } 2073 }