[FFmpeg-devel] [PATCH 1/4] lavf: add write_uncoded_frame() API.

Michael Niedermayer michaelni at gmx.at
Thu Jan 2 11:53:00 CET 2014


On Thu, Jan 02, 2014 at 01:31:02AM +0100, Michael Niedermayer wrote:
> On Wed, Jan 01, 2014 at 01:27:05PM +0100, Nicolas George wrote:
[...]
> > @@ -871,3 +879,36 @@ int ff_write_chained(AVFormatContext *dst, int dst_stream, AVPacket *pkt,
> >                                            dst->streams[dst_stream]->time_base);
> >      return av_write_frame(dst, &local_pkt);
> >  }
> > +
> > +int av_write_uncoded_frame(AVFormatContext *s, int stream_index,
> > +                           AVFrame *frame, unsigned flags)
> > +{
> > +    AVPacket pkt, *pktp;
> > +
> > +    av_assert0(s->oformat);
> > +    if (!s->oformat->write_uncoded_frame)
> > +        return AVERROR(ENOSYS);
> 
> > +    if ((flags & AV_WRITE_UNCODED_FRAME_QUERY))
> > +        return s->oformat->write_uncoded_frame(s, stream_index, NULL, flags);
> 
> maybe PCM/RAWVIDEO could be assert0() here

or a return AVERROR(EINVAL)

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- 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/20140102/a34ace46/attachment.asc>


More information about the ffmpeg-devel mailing list