Skip to content

Commit 2e44c16

Browse files
Fixing incorrect variable assignment (#412)
Co-authored-by: Fernando Esquirio Torres <[email protected]>
1 parent 3e3849c commit 2e44c16

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

object-detection-cv25/app/imgprovider.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ bool chooseStreamResolution(unsigned int reqWidth,
277277
// If we got a reasonable w/h from the VDO channel info we use that
278278
// for creating the stream. If that info for some reason was empty we
279279
// fall back to trying to create a stream with client-supplied w/h.
280-
*chosenWidth = reqWidth;
281-
*chosenWidth = reqHeight;
280+
*chosenWidth = reqWidth;
281+
*chosenHeight = reqHeight;
282282
if (bestResolutionIdx >= 0) {
283283
*chosenWidth = set->resolutions[bestResolutionIdx].width;
284284
*chosenHeight = set->resolutions[bestResolutionIdx].height;

object-detection/app/imgprovider.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ bool chooseStreamResolution(unsigned int reqWidth,
268268
// If we got a reasonable w/h from the VDO channel info we use that
269269
// for creating the stream. If that info for some reason was empty we
270270
// fall back to trying to create a stream with client-supplied w/h.
271-
*chosenWidth = reqWidth;
272-
*chosenWidth = reqHeight;
271+
*chosenWidth = reqWidth;
272+
*chosenHeight = reqHeight;
273273
if (bestResolutionIdx >= 0) {
274274
*chosenWidth = set->resolutions[bestResolutionIdx].width;
275275
*chosenHeight = set->resolutions[bestResolutionIdx].height;

0 commit comments

Comments
 (0)