Commit 9681affb authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix compilation with Visual Studio.

parent d1ef7469
......@@ -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;
}
......
......@@ -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
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment