62 lines
1.8 KiB
Diff
62 lines
1.8 KiB
Diff
|
--- channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c 2016-09-22 19:09:13.429317530 +0200
|
||
|
+++ channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c 2016-09-22 19:11:31.976367968 +0200
|
||
|
@@ -195,28 +195,28 @@
|
||
|
switch (media_type->SubType)
|
||
|
{
|
||
|
case TSMF_SUB_TYPE_WVC1:
|
||
|
- mdecoder->codec_id = CODEC_ID_VC1;
|
||
|
+ mdecoder->codec_id = AV_CODEC_ID_VC1;
|
||
|
break;
|
||
|
case TSMF_SUB_TYPE_WMA2:
|
||
|
- mdecoder->codec_id = CODEC_ID_WMAV2;
|
||
|
+ mdecoder->codec_id = AV_CODEC_ID_WMAV2;
|
||
|
break;
|
||
|
case TSMF_SUB_TYPE_WMA9:
|
||
|
- mdecoder->codec_id = CODEC_ID_WMAPRO;
|
||
|
+ mdecoder->codec_id = AV_CODEC_ID_WMAPRO;
|
||
|
break;
|
||
|
case TSMF_SUB_TYPE_MP3:
|
||
|
- mdecoder->codec_id = CODEC_ID_MP3;
|
||
|
+ mdecoder->codec_id = AV_CODEC_ID_MP3;
|
||
|
break;
|
||
|
case TSMF_SUB_TYPE_MP2A:
|
||
|
- mdecoder->codec_id = CODEC_ID_MP2;
|
||
|
+ mdecoder->codec_id = AV_CODEC_ID_MP2;
|
||
|
break;
|
||
|
case TSMF_SUB_TYPE_MP2V:
|
||
|
- mdecoder->codec_id = CODEC_ID_MPEG2VIDEO;
|
||
|
+ mdecoder->codec_id = AV_CODEC_ID_MPEG2VIDEO;
|
||
|
break;
|
||
|
case TSMF_SUB_TYPE_WMV3:
|
||
|
- mdecoder->codec_id = CODEC_ID_WMV3;
|
||
|
+ mdecoder->codec_id = AV_CODEC_ID_WMV3;
|
||
|
break;
|
||
|
case TSMF_SUB_TYPE_AAC:
|
||
|
- mdecoder->codec_id = CODEC_ID_AAC;
|
||
|
+ mdecoder->codec_id = AV_CODEC_ID_AAC;
|
||
|
/* For AAC the pFormat is a HEAACWAVEINFO struct, and the codec data
|
||
|
is at the end of it. See
|
||
|
http://msdn.microsoft.com/en-us/library/dd757806.aspx */
|
||
|
@@ -228,10 +228,10 @@
|
||
|
break;
|
||
|
case TSMF_SUB_TYPE_H264:
|
||
|
case TSMF_SUB_TYPE_AVC1:
|
||
|
- mdecoder->codec_id = CODEC_ID_H264;
|
||
|
+ mdecoder->codec_id = AV_CODEC_ID_H264;
|
||
|
break;
|
||
|
case TSMF_SUB_TYPE_AC3:
|
||
|
- mdecoder->codec_id = CODEC_ID_AC3;
|
||
|
+ mdecoder->codec_id = AV_CODEC_ID_AC3;
|
||
|
break;
|
||
|
default:
|
||
|
return false;
|
||
|
@@ -438,7 +438,7 @@
|
||
|
|
||
|
switch (mdecoder->codec_context->pix_fmt)
|
||
|
{
|
||
|
- case PIX_FMT_YUV420P:
|
||
|
+ case AV_PIX_FMT_YUV420P:
|
||
|
return RDP_PIXFMT_I420;
|
||
|
|
||
|
default:
|