OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
742d860
)
Set codec_tag in dshow device, needed to distinguish between YUV and YVU.
author
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Sat, 8 Mar 2014 12:42:47 +0000
(13:42 +0100)
committer
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Sat, 8 Mar 2014 12:42:47 +0000
(13:42 +0100)
Fixes ticket #3447.
libavdevice/dshow.c
patch
|
blob
|
history
diff --git
a/libavdevice/dshow.c
b/libavdevice/dshow.c
index
950e313
..
1d500bd
100644
(file)
--- 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");