[FFmpeg-devel] [PATCH 1/2] libavformat: Add av_pkt_dump{, _log}2, taking an AVStream parameter

Martin Storsjö martin
Mon Mar 7 11:34:30 CET 2011


On Mon, 7 Mar 2011, Anssi Hannula wrote:

> On 24.02.2011 10:08, Martin Storsj? wrote:
> > This removes a fixme issue, by allowing the av_pkt_dump functions
> > to use the correct time base.
> > ---
> [...]
> > @@ -973,8 +973,11 @@ void av_hex_dump_log(void *avcl, int level, uint8_t *buf, int size);
> >   * @param f The file stream pointer where the dump should be sent to.
> >   * @param pkt packet to dump
> >   * @param dump_payload True if the payload must be displayed, too.
> > + * @param st AVStream that the packet belongs to
> >   */
> > -void av_pkt_dump(FILE *f, AVPacket *pkt, int dump_payload);
> > +void av_pkt_dump2(FILE *f, AVPacket *pkt, int dump_payload, AVStream *st);
> > +
> > +attribute_deprecated void av_pkt_dump(FILE *f, AVPacket *pkt, int dump_payload);
> >  
> >  /**
> >   * Send a nice dump of a packet to the log.
> > @@ -985,8 +988,13 @@ void av_pkt_dump(FILE *f, AVPacket *pkt, int dump_payload);
> >   * higher importance.
> >   * @param pkt packet to dump
> >   * @param dump_payload True if the payload must be displayed, too.
> > + * @param st AVStream that the packet belongs to
> >   */
> > -void av_pkt_dump_log(void *avcl, int level, AVPacket *pkt, int dump_payload);
> > +void av_pkt_dump_log2(void *avcl, int level, AVPacket *pkt, int dump_payload,
> > +                      AVStream *st);
> > +
> > +attribute_deprecated void av_pkt_dump_log(void *avcl, int level, AVPacket *pkt,
> > +                                          int dump_payload);
> 
> APIchanges entry and minor bump needed, no?

Yes, thanks for catching and sorry for missing it. Patch sent.

// Martin



More information about the ffmpeg-devel mailing list