[FFmpeg-cvslog] pvfdec: use ff_pcm_read_packet()

Paul B Mahol git at videolan.org
Wed Dec 5 14:05:40 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Dec  3 17:27:28 2012 +0000| [a647eb5a8788afc125bd477d27ad9728e55035f6] | committer: Paul B Mahol

pvfdec: use ff_pcm_read_packet()

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a647eb5a8788afc125bd477d27ad9728e55035f6
---

 libavformat/pvfdec.c |   13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/libavformat/pvfdec.c b/libavformat/pvfdec.c
index 9d18256..605d665 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,



More information about the ffmpeg-cvslog mailing list