Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -612,7 +612,7 @@ static int ogg_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp
|
||||
|
||||
// Try seeking to a keyframe first. If this fails (very possible),
|
||||
// av_seek_frame will fall back to ignoring keyframes
|
||||
if (s->streams[stream_index]->codec->codec_type == CODEC_TYPE_VIDEO
|
||||
if (s->streams[stream_index]->codec->codec_type == AVMEDIA_TYPE_VIDEO
|
||||
&& !(flags & AVSEEK_FLAG_ANY))
|
||||
os->keyframe_seek = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user