On Sun, 1 Jul 2012, Luca Barbato wrote:

Codec change midstream gets mapped to a separate stream.
---

This version is simpler, I'm thinking about using side-data to signal this
change as well.

This looks much simpler and nicer indeed.

For "normal" cases where you actually have just one stream but it changes codec on the fly - I'm not sure if this is a step in the right or wrong direction, but we really don't support it within one AVStream at the moment at least, so it might be a better choice.

Do you think some code could be shared with flv_set_video_codec or flv_set_audio_codec? The problem is that they do other stuff (initialize extradata, set sample rates and such) so that there still remains a bit of code in them even if you'd split out e.g. a flv_video_flags_to_codec_id or so.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to