aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-12-03 17:27:28 +0000
committerPaul B Mahol <onemda@gmail.com>2012-12-05 12:40:57 +0000
commita647eb5a8788afc125bd477d27ad9728e55035f6 (patch)
tree13bc8f5f85b1255f16ff4c803e2836a96b9074e5
parent15ab0393fd8fe7d758a6f43d34c5b9bfcdece6d8 (diff)
downloadffmpeg-a647eb5a8788afc125bd477d27ad9728e55035f6.tar.gz
pvfdec: use ff_pcm_read_packet()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavformat/pvfdec.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/libavformat/pvfdec.c b/libavformat/pvfdec.c
index 9d18256688..605d66580a 100644
--- a/libavformat/pvfdec.c
+++ b/libavformat/pvfdec.c
@@ -63,23 +63,12 @@ static int pvf_read_header(AVFormatContext *s)
return 0;
}
-static int pvf_read_packet(AVFormatContext *s, AVPacket *pkt)
-{
- int ret;
-
- ret = av_get_packet(s->pb, pkt, 1024 * s->streams[0]->codec->block_align);
- pkt->flags &= ~AV_PKT_FLAG_CORRUPT;
- pkt->stream_index = 0;
-
- return ret;
-}
-
AVInputFormat ff_pvf_demuxer = {
.name = "pvf",
.long_name = NULL_IF_CONFIG_SMALL("PVF (Portable Voice Format)"),
.read_probe = pvf_probe,
.read_header = pvf_read_header,
- .read_packet = pvf_read_packet,
+ .read_packet = ff_pcm_read_packet,
.read_seek = ff_pcm_read_seek,
.extensions = "pvf",
.flags = AVFMT_GENERIC_INDEX,