[soc]: r4394 - seek_api/mpeg.c
Author: spyfeng Date: Mon Jun 8 16:18:20 2009 New Revision: 4394 Log: use pts instead of e->timestamp for code more readable Modified: seek_api/mpeg.c Modified: seek_api/mpeg.c ============================================================================== --- seek_api/mpeg.c Mon Jun 8 16:16:45 2009 (r4393) +++ seek_api/mpeg.c Mon Jun 8 16:18:20 2009 (r4394) @@ -671,7 +671,7 @@ static int mpegps_read_seek1(struct AVFo url_fseek(s->pb, pos, SEEK_SET); av_log(s, AV_LOG_DEBUG, "the seek pos = %"PRId64", pts = %"PRId64", targe timestamp = %"PRId64"\n", pos, pts, ts); - if (e->timestamp == ts) { // find the target timestamp + if (pts == ts) { // find the target timestamp goto sucess; } else { // seek around to get the keyframe, then seek there if (find_keyframe(s, &pos,&pts,ts, flags) == 0) {
participants (1)
-
spyfeng