#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
-#include "rawdec.h"
+#include "pcm.h"
static int avr_probe(AVProbeData *p)
{
return AVERROR_PATCHWELCOME;
}
+ st->codec->block_align = bps * st->codec->channels / 8;
+
avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate);
return 0;
}
.long_name = NULL_IF_CONFIG_SMALL("AVR (Audio Visual Research)"),
.read_probe = avr_probe,
.read_header = avr_read_header,
- .read_packet = ff_raw_read_partial_packet,
+ .read_packet = ff_pcm_read_packet,
+ .read_seek = ff_pcm_read_seek,
.extensions = "avr",
+ .flags = AVFMT_GENERIC_INDEX,
};