History

libavcodec: set AVFrame colorspace fields on decoding

wm4 committed 12 years ago

Commit eb800f11 parent 8c02adc1 file · +7 −0Browse files

Unified · Split

libavcodec/utils.c+7−0
@@ -580,6 +580,13 @@ int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame) · 579 unmodified lines
580580 int size;
581581 AVFrameSideData *frame_sd;
582582
583+#if FF_API_AVFRAME_COLORSPACE
584+ frame->color_primaries = avctx->color_primaries;
585+ frame->color_trc = avctx->color_trc;
586+ frame->colorspace = avctx->colorspace;
587+ frame->color_range = avctx->color_range;
588+ frame->chroma_location = avctx->chroma_sample_location;
589+#endif
583590
584591 frame->reordered_opaque = avctx->reordered_opaque;
585592 if (!pkt) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t