Mercurial > libavformat.hg
comparison nutdec.c @ 2170:4452d75a9298 libavformat
fix some printf format specifiers
author | mru |
---|---|
date | Sat, 16 Jun 2007 14:52:05 +0000 |
parents | 3804e39efbfd |
children | da71207a7cf1 |
comparison
equal
deleted
inserted
replaced
2169:a5f318cc9245 | 2170:4452d75a9298 |
---|---|
637 StreamContext *stc; | 637 StreamContext *stc; |
638 int size, flags, size_mul, pts_delta, i, reserved_count; | 638 int size, flags, size_mul, pts_delta, i, reserved_count; |
639 uint64_t tmp; | 639 uint64_t tmp; |
640 | 640 |
641 if(url_ftell(bc) > nut->last_syncpoint_pos + nut->max_distance){ | 641 if(url_ftell(bc) > nut->last_syncpoint_pos + nut->max_distance){ |
642 av_log(s, AV_LOG_ERROR, "last frame must have been damaged %Ld > %Ld + %d\n", url_ftell(bc), nut->last_syncpoint_pos, nut->max_distance); | 642 av_log(s, AV_LOG_ERROR, "last frame must have been damaged %"PRId64" > %"PRId64" + %d\n", url_ftell(bc), nut->last_syncpoint_pos, nut->max_distance); |
643 return -1; | 643 return -1; |
644 } | 644 } |
645 | 645 |
646 flags = nut->frame_code[frame_code].flags; | 646 flags = nut->frame_code[frame_code].flags; |
647 size_mul = nut->frame_code[frame_code].size_mul; | 647 size_mul = nut->frame_code[frame_code].size_mul; |
796 } | 796 } |
797 }while(decode_syncpoint(nut, &pts, &back_ptr) < 0); | 797 }while(decode_syncpoint(nut, &pts, &back_ptr) < 0); |
798 *pos_arg = pos-1; | 798 *pos_arg = pos-1; |
799 assert(nut->last_syncpoint_pos == *pos_arg); | 799 assert(nut->last_syncpoint_pos == *pos_arg); |
800 | 800 |
801 av_log(s, AV_LOG_DEBUG, "return %Ld %Ld\n", pts,back_ptr ); | 801 av_log(s, AV_LOG_DEBUG, "return %"PRId64" %"PRId64"\n", pts,back_ptr ); |
802 if (stream_index == -1) return pts; | 802 if (stream_index == -1) return pts; |
803 else if(stream_index == -2) return back_ptr; | 803 else if(stream_index == -2) return back_ptr; |
804 | 804 |
805 assert(0); | 805 assert(0); |
806 } | 806 } |
821 | 821 |
822 pos2= st->index_entries[index].pos; | 822 pos2= st->index_entries[index].pos; |
823 ts = st->index_entries[index].timestamp; | 823 ts = st->index_entries[index].timestamp; |
824 }else{ | 824 }else{ |
825 av_tree_find(nut->syncpoints, &dummy, sp_pts_cmp, next_node); | 825 av_tree_find(nut->syncpoints, &dummy, sp_pts_cmp, next_node); |
826 av_log(s, AV_LOG_DEBUG, "%Ld-%Ld %Ld-%Ld\n", next_node[0]->pos, next_node[1]->pos, | 826 av_log(s, AV_LOG_DEBUG, "%"PRIu64"-%"PRIu64" %"PRId64"-%"PRId64"\n", next_node[0]->pos, next_node[1]->pos, |
827 next_node[0]->ts , next_node[1]->ts); | 827 next_node[0]->ts , next_node[1]->ts); |
828 pos= av_gen_search(s, -1, dummy.ts, next_node[0]->pos, next_node[1]->pos, next_node[1]->pos, | 828 pos= av_gen_search(s, -1, dummy.ts, next_node[0]->pos, next_node[1]->pos, next_node[1]->pos, |
829 next_node[0]->ts , next_node[1]->ts, AVSEEK_FLAG_BACKWARD, &ts, nut_read_timestamp); | 829 next_node[0]->ts , next_node[1]->ts, AVSEEK_FLAG_BACKWARD, &ts, nut_read_timestamp); |
830 | 830 |
831 if(!(flags & AVSEEK_FLAG_BACKWARD)){ | 831 if(!(flags & AVSEEK_FLAG_BACKWARD)){ |