[FFmpeg-cvslog] Set codec_tag in dshow device, needed to distinguish between YUV and YVU.

Carl Eugen Hoyos git at videolan.org
Sat Mar 8 14:19:04 CET 2014


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Mar  8 13:42:47 2014 +0100| [6208bb965d30027730418e466dc56601e50a42a0] | committer: Carl Eugen Hoyos

Set codec_tag in dshow device, needed to distinguish between YUV and YVU.

Fixes ticket #3447.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6208bb965d30027730418e466dc56601e50a42a0
---

 libavdevice/dshow.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 950e313..1d500bd 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");



More information about the ffmpeg-cvslog mailing list