case 0:
//video
//skip VBI data and metadata
- avio_seek(pb, (int64_t)(uint32_t)AV_RL32(&header[44]) +
- (int64_t)(uint32_t)AV_RL32(&header[52]), SEEK_CUR);
+ avio_skip(pb, (int64_t)(uint32_t)AV_RL32(&header[44]) +
+ (int64_t)(uint32_t)AV_RL32(&header[52]));
break;
case 1:
//audio
return ret < 0 ? ret : AVERROR_EOF;
if (!(st = av_new_stream(s, 0)))
- return AVERROR_NOMEM;
+ return AVERROR(ENOMEM);
st->duration = AV_RL32(&header_data[32]);
video_params = AV_RL32(&header_data[40]);
if ((lxf->channels = (disk_params >> 2) & 0xF)) {
if (!(st = av_new_stream(s, 1)))
- return AVERROR_NOMEM;
+ return AVERROR(ENOMEM);
st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
st->codec->sample_rate = LXF_SAMPLERATE;
if (format == 1) {
//skip extended field data
- avio_seek(s->pb, (uint32_t)AV_RL32(&header[40]), SEEK_CUR);
+ avio_skip(s->pb, (uint32_t)AV_RL32(&header[40]));
}
return 0;