[FFmpeg-devel] [PATCH] avcodec: add properties for lossless to AVCodecParameters
Michael Niedermayer
michael at niedermayer.cc
Sun May 8 18:00:31 CEST 2016
On Sun, May 08, 2016 at 05:18:40PM +0200, Hendrik Leppkes wrote:
> On Sun, May 8, 2016 at 12:10 PM, Michael Niedermayer
> <michael at niedermayer.cc> wrote:
> > Fixes Ticket5467
> >
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> > libavcodec/avcodec.h | 4 ++++
> > libavcodec/utils.c | 2 ++
> > 2 files changed, 6 insertions(+)
> >
> > diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> > index 3813a0a..1db2e0f 100644
> > --- a/libavcodec/avcodec.h
> > +++ b/libavcodec/avcodec.h
> > @@ -4050,6 +4050,10 @@ typedef struct AVCodecParameters {
> > * Audio only. Number of samples to skip after a discontinuity.
> > */
> > int seek_preroll;
> > +
> > + /** Properties, like FF_CODEC_PROPERTY_LOSSLESS.
> > + */
> > + int properties;
> > } AVCodecParameters;
> >
>
> There properties are not part of any container we support and therefor
> not really fitting into this structure.
The documentation of AVCodecParameters says
"This struct describes the properties of an encoded stream."
lossless-ness is certainly a property of an encoded stream
i dont think restricting a structure from libavcodec by the existence
of demuxers for formats in libavformat is a good or clean design.
its also not really true, that this isnt stored in containers
avi for example has dwQuality which in conjunction with the codec_tag
can probably be used to detect lossless ness for some codec_tags
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160508/f99d6fbb/attachment.sig>
More information about the ffmpeg-devel
mailing list