mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
pvfdec: use ff_pcm_read_packet()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
15ab0393fd
commit
a647eb5a87
@ -63,23 +63,12 @@ static int pvf_read_header(AVFormatContext *s)
|
|||||||
return 0;
|
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 = {
|
AVInputFormat ff_pvf_demuxer = {
|
||||||
.name = "pvf",
|
.name = "pvf",
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("PVF (Portable Voice Format)"),
|
.long_name = NULL_IF_CONFIG_SMALL("PVF (Portable Voice Format)"),
|
||||||
.read_probe = pvf_probe,
|
.read_probe = pvf_probe,
|
||||||
.read_header = pvf_read_header,
|
.read_header = pvf_read_header,
|
||||||
.read_packet = pvf_read_packet,
|
.read_packet = ff_pcm_read_packet,
|
||||||
.read_seek = ff_pcm_read_seek,
|
.read_seek = ff_pcm_read_seek,
|
||||||
.extensions = "pvf",
|
.extensions = "pvf",
|
||||||
.flags = AVFMT_GENERIC_INDEX,
|
.flags = AVFMT_GENERIC_INDEX,
|
||||||
|
Loading…
Reference in New Issue
Block a user