History

media: hantro: Fix reset_raw_fmt initialization

raw_fmt->height in never initialized. But width in initialized twice.

Ricardo Ribalda committed 5 years ago

Commit e0818631 parent eaf18a41 file · +1 −1Browse files

Unified · Split

drivers/staging/media/hantro/hantro_v4l2.c+1−1
@@ -367,7 +367,7 @@ hantro_reset_raw_fmt(struct hantro_ctx *ctx) · 366 unmodified lines
367 367
368 hantro_reset_fmt(raw_fmt, raw_vpu_fmt);368 hantro_reset_fmt(raw_fmt, raw_vpu_fmt);
369 raw_fmt->width = encoded_fmt->width;369 raw_fmt->width = encoded_fmt->width;
370 raw_fmt->width = encoded_fmt->width;370 raw_fmt->height = encoded_fmt->height;
371 if (ctx->is_encoder)371 if (ctx->is_encoder)
372 hantro_set_fmt_out(ctx, raw_fmt);372 hantro_set_fmt_out(ctx, raw_fmt);
373 else373 else

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t