The asf_read_pts should read the bitstream directly.
| ... | ... |
@@ -1168,7 +1168,7 @@ static int64_t asf_read_pts(AVFormatContext *s, int stream_index, int64_t *ppos, |
| 1168 | 1168 |
//printf("asf_read_pts\n");
|
| 1169 | 1169 |
asf_reset_header(s); |
| 1170 | 1170 |
for(;;){
|
| 1171 |
- if (av_read_frame(s, pkt) < 0){
|
|
| 1171 |
+ if (asf_read_packet(s, pkt) < 0){
|
|
| 1172 | 1172 |
av_log(s, AV_LOG_INFO, "asf_read_pts failed\n"); |
| 1173 | 1173 |
return AV_NOPTS_VALUE; |
| 1174 | 1174 |
} |