[FFmpeg-devel] [PATCH 3/9] lavf/ffm: store/restore private codec context

Nicolas George george at nsup.org
Wed Nov 12 09:09:43 CET 2014


Le primidi 21 brumaire, an CCXXIII, Lukasz Marek a écrit :
> +static int ffm_write_header_codec_private_ctx(AVIOContext *pb, void *priv_data, int type)
> +{
> +    AVIOContext *tmp;
> +    char *buf = NULL;
> +
> +    if (priv_data) {
> +        if (avio_open_dyn_buf(&tmp) < 0)
> +            return AVERROR(ENOMEM);

> +        av_opt_serialize(priv_data, AV_OPT_FLAG_ENCODING_PARAM | type, 1, &buf, '=', ',');
                                                                          ^
Unless I am mistaken, this is skip_default. What happens if the instance
that reads the file does not have the same defaults as the instance that has
written it? For example, what happens if ffmpeg feeding ffserver is not the
same version as ffserver?

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141112/333e3671/attachment.asc>


More information about the ffmpeg-devel mailing list