---
I'm not touching the encoding part. Encoding doesn't seem to support
parameter changes, at least not for the most important codecs. In fact,
you often can pass completely incorrect AVFrame fields (like wrong
format set), and as long as data/linesize are correct, nothing bad
will to happen. So it seems pointless to care about the encoding
case for now.
---
libavcodec/utils.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 622c72b..4a95696 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -579,6 +579,11 @@ int ff_decode_frame_props(AVCodecContext *avctx, AVFrame
*frame)
int size;
AVFrameSideData *frame_sd;
+ frame->color_primaries = avctx->color_primaries;
+ frame->color_trc = avctx->color_trc;
+ frame->colorspace = avctx->colorspace;
+ frame->color_range = avctx->color_range;
+ frame->chroma_sample_location = avctx->chroma_sample_location;
frame->reordered_opaque = avctx->reordered_opaque;
if (!pkt) {
--
1.9.0
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel