codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
printf("Stream time_base=%d/%d\n", video_stream->time_base.num, video_stream->time_base.den); printf("Stream duration =%llu\n", video_stream->duration); TIME_START("Seek"); int64_t pos = video_stream->duration - 100000; int errnum = av_seek_frame(fmt_ctx, video_stream_idx, pos, 0); printf("Seek result : %s\n", av_err2str(errnum)); TIME_END; /* Stream time_base=1/90000 Stream duration =647986752 Seek result : Success Seek took 39 microseconds; */
Private
[
?
]
Run code
Submit