Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
3c87d9b2
Commit
3c87d9b2
authored
Aug 17, 2015
by
François Grisez
Browse files
Fix build with Visual Studio
parent
5d245fe6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/videofilters/mkv.c
View file @
3c87d9b2
...
...
@@ -2146,7 +2146,8 @@ static MKVTrackPlayer *mkv_track_player_new(MKVReader *reader, const MKVTrack *t
obj
->
track
=
track
;
if
(
track
->
type
==
MKV_TRACK_TYPE_VIDEO
)
{
MKVVideoTrack
*
v_track
=
(
MKVVideoTrack
*
)
track
;
obj
->
output_pin_desc
=
ms_factory_get_video_format
(
ms_factory_get_fallback
(),
codec_name
,
(
MSVideoSize
){
v_track
->
width
,
v_track
->
height
},
v_track
->
frame_rate
,
NULL
);
MSVideoSize
vsize
=
{
v_track
->
width
,
v_track
->
height
};
obj
->
output_pin_desc
=
ms_factory_get_video_format
(
ms_factory_get_fallback
(),
codec_name
,
vsize
,
v_track
->
frame_rate
,
NULL
);
}
else
if
(
track
->
type
==
MKV_TRACK_TYPE_AUDIO
)
{
MKVAudioTrack
*
a_track
=
(
MKVAudioTrack
*
)
track
;
obj
->
output_pin_desc
=
ms_factory_get_audio_format
(
ms_factory_get_fallback
(),
codec_name
,
a_track
->
sampling_freq
,
a_track
->
channels
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment