comparison oggdec.c @ 5910:536e5527c1e0 libavformat

Define AVMediaType enum, and use it instead of enum CodecType, which is deprecated and will be dropped at the next major bump.
author stefano
date Tue, 30 Mar 2010 23:30:55 +0000
parents 121d6994c20e
children 11bb10c37225
comparison
equal deleted inserted replaced
5909:b8041f85c327 5910:536e5527c1e0
610 struct ogg_stream *os = ogg->streams + stream_index; 610 struct ogg_stream *os = ogg->streams + stream_index;
611 int ret; 611 int ret;
612 612
613 // Try seeking to a keyframe first. If this fails (very possible), 613 // Try seeking to a keyframe first. If this fails (very possible),
614 // av_seek_frame will fall back to ignoring keyframes 614 // av_seek_frame will fall back to ignoring keyframes
615 if (s->streams[stream_index]->codec->codec_type == CODEC_TYPE_VIDEO 615 if (s->streams[stream_index]->codec->codec_type == AVMEDIA_TYPE_VIDEO
616 && !(flags & AVSEEK_FLAG_ANY)) 616 && !(flags & AVSEEK_FLAG_ANY))
617 os->keyframe_seek = 1; 617 os->keyframe_seek = 1;
618 618
619 ret = av_seek_frame_binary(s, stream_index, timestamp, flags); 619 ret = av_seek_frame_binary(s, stream_index, timestamp, flags);
620 if (ret < 0) 620 if (ret < 0)