* Auto white-space cleanup.
* Do not override pixel aspect unnecessarily. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32046 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -379,13 +379,11 @@ MediaConverterApp::_ConvertFile(BMediaFile* inFile, BMediaFile* outFile,
|
|||||||
height = (int32)inFormat.Height();
|
height = (int32)inFormat.Height();
|
||||||
|
|
||||||
// construct desired decoded video format
|
// construct desired decoded video format
|
||||||
// memset(&outVidFormat, 0, sizeof(outVidFormat));
|
memset(&outVidFormat, 0, sizeof(outVidFormat));
|
||||||
outVidFormat.type = B_MEDIA_RAW_VIDEO;
|
outVidFormat.type = B_MEDIA_RAW_VIDEO;
|
||||||
rvf = &(outVidFormat.u.raw_video);
|
rvf = &(outVidFormat.u.raw_video);
|
||||||
rvf->last_active = (uint32)(height - 1);
|
rvf->last_active = (uint32)(height - 1);
|
||||||
rvf->orientation = B_VIDEO_TOP_LEFT_RIGHT;
|
rvf->orientation = B_VIDEO_TOP_LEFT_RIGHT;
|
||||||
rvf->pixel_width_aspect = 1;
|
|
||||||
rvf->pixel_height_aspect = 1;
|
|
||||||
rvf->display.format = B_RGB32;
|
rvf->display.format = B_RGB32;
|
||||||
rvf->display.bytes_per_row = 4 * width;
|
rvf->display.bytes_per_row = 4 * width;
|
||||||
rvf->display.line_width = width;
|
rvf->display.line_width = width;
|
||||||
|
|||||||
Reference in New Issue
Block a user