[ create a new paste ] login | about

Link: http://codepad.org/3Hyvd8Ly    [ raw code | fork ]

Plain Text, pasted on Apr 23:
1
2
3
4
5
6
7
8
9
10
	TIME_START("Seek");
	//av_seek_frame(fmt_ctx, video_stream_idx, video_stream->duration, 0);
	//int64_t pos = video_stream->duration / 2;
	int64_t pos = video_stream->duration - 100000;
	//int errnum = avformat_seek_file(fmt_ctx, video_stream_idx, INT64_MIN, pos, INT64_MAX, 0);
	int errnum = av_seek_frame(fmt_ctx, video_stream_idx, pos, 0);
	//if(errnum < 0)
	    printf("Seek result : %s\n", av_err2str(errnum));
	TIME_END;



Create a new paste based on this one


Comments: