[FFmpeg-devel] [PATCH 3/7] lavf: Set pos for all packets of AVSTREAM_PARSE_FULL_RAW files.
Michael Niedermayer
michaelni at gmx.at
Wed Jul 25 01:57:42 CEST 2012
On Tue, Jul 24, 2012 at 09:24:20PM +0200, Reimar Döffinger wrote:
> On Tue, Jul 24, 2012 at 06:15:35PM +0200, Michael Niedermayer wrote:
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> > libavformat/utils.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/libavformat/utils.c b/libavformat/utils.c
> > index fba08aa..8a21e94 100644
> > --- a/libavformat/utils.c
> > +++ b/libavformat/utils.c
> > @@ -1216,6 +1216,9 @@ static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
> > out_pkt.dts = st->parser->dts;
> > out_pkt.pos = st->parser->pos;
> >
> > + if(st->need_parsing == AVSTREAM_PARSE_FULL_RAW)
> > + out_pkt.pos = st->parser->frame_offset;
>
> Maybe extend the AVSTREAM_PARSE_FULL_RAW doxy to say "with packet
> timestamp and position generation by parser" or such?
fixed
applied
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- 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/20120725/d4999292/attachment.asc>
More information about the ffmpeg-devel
mailing list