aboutsummaryrefslogtreecommitdiff
path: root/libavformat/avr.c
diff options
context:
space:
mode:
authorPaul B Mahol2012-12-03 17:26:16 +0000
committerPaul B Mahol2012-12-05 12:40:57 +0000
commit15ab0393fd8fe7d758a6f43d34c5b9bfcdece6d8 (patch)
tree7eee0f699f272734ef4139a743e182d54a7f4472 /libavformat/avr.c
parent93dc8ed0a113ba0c66fe1191f942766d82664514 (diff)
avr: use ff_pcm_read_packet()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/avr.c')
-rw-r--r--libavformat/avr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/avr.c b/libavformat/avr.c
index d3b23dbd59..71a107c3ac 100644
--- a/libavformat/avr.c
+++ b/libavformat/avr.c
@@ -22,7 +22,6 @@
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
-#include "rawdec.h"
#include "pcm.h"
static int avr_probe(AVProbeData *p)
@@ -83,6 +82,8 @@ static int avr_read_header(AVFormatContext *s)
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;
}
@@ -92,7 +93,7 @@ AVInputFormat ff_avr_demuxer = {
.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,