comparison seek.c @ 5913:11bb10c37225 libavformat

Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY. Patch by Jean-Daniel Dupas, devlists shadowlab org
author cehoyos
date Wed, 31 Mar 2010 12:29:58 +0000
parents cf00e196666a
children
comparison
equal deleted inserted replaced
5912:10f577d87c71 5913:11bb10c37225
160 else 160 else
161 sp->last_pos = pos; 161 sp->last_pos = pos;
162 162
163 // Evaluate key frames with known TS (or any frames, if AVSEEK_FLAG_ANY set). 163 // Evaluate key frames with known TS (or any frames, if AVSEEK_FLAG_ANY set).
164 if (pts != AV_NOPTS_VALUE && 164 if (pts != AV_NOPTS_VALUE &&
165 ((flg & PKT_FLAG_KEY) || (flags & AVSEEK_FLAG_ANY))) { 165 ((flg & AV_PKT_FLAG_KEY) || (flags & AVSEEK_FLAG_ANY))) {
166 if (flags & AVSEEK_FLAG_BYTE) { 166 if (flags & AVSEEK_FLAG_BYTE) {
167 // for byte seeking, use position as timestamp 167 // for byte seeking, use position as timestamp
168 ts = pos; 168 ts = pos;
169 ts_tb.num = 1; 169 ts_tb.num = 1;
170 ts_tb.den = 1; 170 ts_tb.den = 1;