summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-03-08 13:42:47 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-03-08 13:42:47 +0100
commit6208bb965d30027730418e466dc56601e50a42a0 (patch)
treec16553cc642760a99421e7e9299f4dd64af6b6df /libavdevice
parent742d8601031fc69748f62fe7c5164a22a0751021 (diff)
Set codec_tag in dshow device, needed to distinguish between YUV and YVU.
Fixes ticket #3447.
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/dshow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 950e313ed8..1d500bdb3a 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -773,6 +773,7 @@ dshow_add_device(AVFormatContext *avctx,
codec->codec_type = AVMEDIA_TYPE_VIDEO;
codec->width = bih->biWidth;
codec->height = bih->biHeight;
+ codec->codec_tag = bih->biCompression;
codec->pix_fmt = dshow_pixfmt(bih->biCompression, bih->biBitCount);
if (bih->biCompression == MKTAG('H', 'D', 'Y', 'C')) {
av_log(avctx, AV_LOG_DEBUG, "attempt to use full range for HDYC...\n");