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
9681affb
Commit
9681affb
authored
Jan 09, 2014
by
Ghislain MARY
Browse files
Fix compilation with Visual Studio.
parent
d1ef7469
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
src/videofilters/h264dec.c
src/videofilters/h264dec.c
+2
-1
src/videofilters/videodec.c
src/videofilters/videodec.c
+5
-4
src/videofilters/vp8.c
src/videofilters/vp8.c
+2
-1
No files found.
src/videofilters/h264dec.c
View file @
9681affb
...
...
@@ -332,7 +332,8 @@ static int dec_get_vsize(MSFilter *f, void *data) {
vsize
->
width
=
d
->
outbuf
.
w
;
vsize
->
height
=
d
->
outbuf
.
h
;
}
else
{
*
vsize
=
MS_VIDEO_SIZE_UNKNOWN
;
vsize
->
width
=
MS_VIDEO_SIZE_UNKNOWN_W
;
vsize
->
height
=
MS_VIDEO_SIZE_UNKNOWN_H
;
}
return
0
;
}
...
...
src/videofilters/videodec.c
View file @
9681affb
...
...
@@ -723,17 +723,18 @@ static int dec_get_vsize(MSFilter *f, void *data) {
vsize
->
width
=
s
->
outbuf
.
w
;
vsize
->
height
=
s
->
outbuf
.
h
;
}
else
{
*
vsize
=
MS_VIDEO_SIZE_UNKNOWN
;
vsize
->
width
=
MS_VIDEO_SIZE_UNKNOWN_W
;
vsize
->
height
=
MS_VIDEO_SIZE_UNKNOWN_H
;
}
return
0
;
}
static
MSFilterMethod
methods
[]
=
{
{
MS_FILTER_ADD_FMTP
,
dec_add_fmtp
},
{
MS_VIDEO_DECODER_RESET_FIRST_IMAGE_NOTIFICATION
,
reset_first_image
},
{
MS_FILTER_ADD_FMTP
,
dec_add_fmtp
},
{
MS_VIDEO_DECODER_RESET_FIRST_IMAGE_NOTIFICATION
,
reset_first_image
},
{
MS_FILTER_GET_VIDEO_SIZE
,
dec_get_vsize
},
{
0
,
NULL
}
{
0
,
NULL
}
};
#ifdef _MSC_VER
...
...
src/videofilters/vp8.c
View file @
9681affb
...
...
@@ -682,7 +682,8 @@ static int dec_get_vsize(MSFilter *f, void *data) {
vsize
->
width
=
s
->
yuv_width
;
vsize
->
height
=
s
->
yuv_height
;
}
else
{
*
vsize
=
MS_VIDEO_SIZE_UNKNOWN
;
vsize
->
width
=
MS_VIDEO_SIZE_UNKNOWN_W
;
vsize
->
height
=
MS_VIDEO_SIZE_UNKNOWN_H
;
}
return
0
;
}
...
...
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