Revision a2704c97 libavformat/nutenc.c
libavformat/nutenc.c | ||
---|---|---|
639 | 639 |
if(pkt->pts < 0) |
640 | 640 |
return -1; |
641 | 641 |
|
642 |
if(1LL<<(20+3*nut->header_count) <= url_ftell(bc))
|
|
642 |
if(1LL<<(20+3*nut->header_count) <= avio_tell(bc))
|
|
643 | 643 |
write_headers(s, bc); |
644 | 644 |
|
645 | 645 |
if(key_frame && !(nus->last_flags & FLAG_KEY)) |
646 | 646 |
store_sp= 1; |
647 | 647 |
|
648 |
if(pkt->size + 30/*FIXME check*/ + url_ftell(bc) >= nut->last_syncpoint_pos + nut->max_distance)
|
|
648 |
if(pkt->size + 30/*FIXME check*/ + avio_tell(bc) >= nut->last_syncpoint_pos + nut->max_distance)
|
|
649 | 649 |
store_sp= 1; |
650 | 650 |
|
651 | 651 |
//FIXME: Ensure store_sp is 1 in the first place. |
... | ... | |
668 | 668 |
sp= av_tree_find(nut->syncpoints, &dummy, (void *) ff_nut_sp_pos_cmp, |
669 | 669 |
NULL); |
670 | 670 |
|
671 |
nut->last_syncpoint_pos= url_ftell(bc);
|
|
671 |
nut->last_syncpoint_pos= avio_tell(bc);
|
|
672 | 672 |
ret = url_open_dyn_buf(&dyn_bc); |
673 | 673 |
if(ret < 0) |
674 | 674 |
return ret; |
Also available in: Unified diff