[FFmpeg-devel] [RFC v4] libbavcodec: add a native decoder for the Daala video codec

Michael Niedermayer michael at niedermayer.cc
Fri Jan 1 21:44:03 CET 2016


On Fri, Jan 01, 2016 at 08:16:12PM +0000, Rostislav Pehlivanov wrote:
[...]

> +static av_cold int daala_decode_init(AVCodecContext *avctx)
> +{
> +    int i, r_w, r_h, err = 0;
> +    DaalaContext *s = avctx->priv_data;
> +
> +    /* Inits a default QM, if the file isn't using the default it will be reinit */
> +    s->last_qm = 1;
> +    daala_init_qmatrix(s->pvq.qmatrix, s->pvq.qmatrix_inv, s->last_qm);
> +
> +    s->fmt = find_pix_fmt(avctx->pix_fmt);
> +    if (!s->fmt) {
> +        av_log(avctx, AV_LOG_ERROR, "Unsupported pixel format - %s!\n",
> +               av_get_pix_fmt_name(avctx->pix_fmt));

> +        return AVERROR(ENOTSUP);

this would fail on beos acording to doc/errno.txt

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

It is what and why we do it that matters, not just one of them.
-------------- 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/20160101/7be3acef/attachment.sig>


More information about the ffmpeg-devel mailing list