[FFmpeg-devel] [PATCH] Add PlayStation Portable PMP format demuxer

Michael Niedermayer michaelni at gmx.at
Fri Apr 1 20:33:34 CEST 2011


On Fri, Apr 01, 2011 at 07:38:27PM +0200, Reimar Döffinger wrote:
> Not yet complete, for demuxing AAC the AAC header must be generated
> manually.
> Possibly the decoder could accept the header as extradata to simplify
> this.

> It also does not set pts/dts, which FFmpeg cannot handle.

I thought we had some code that handedl this, but maybe not or it got
broken
is there enough information for ffmpeg to figure out packet durations?
whats the set timebase?

[...]
> +static int pmp_packet(AVFormatContext *s, AVPacket *pkt) {
> +    PMPContext *pmp = s->priv_data;
> +    AVIOContext *pb = s->pb;
> +    int ret = 0;
> +    int i;
> +
> +    if (url_feof(pb))
> +        return AVERROR(EIO);
> +    if (pmp->cur_stream == 0) {
> +        int num_packets;
> +        pmp->audio_packets = avio_r8(pb);
> +        num_packets = (pmp->num_streams - 1) * pmp->audio_packets + 1;

> +        avio_skip(pb, 8);

what are these 8 bytes?



[.,..]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110401/0fc9ada8/attachment.asc>


More information about the ffmpeg-devel mailing list