History

avcodec/mjpegdec: Fix compilation

Regression since 9a494b82d998823d0de68cb6b8db83cc451d1781.

Andreas Rheinhardt committed 4 years ago

Commit b0c73521 parent 4b6b75c1 file · +1 −1Browse files

Unified · Split

libavcodec/mjpegdec.c+1−1
@@ -596,7 +596,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s) · 595 unmodified lines
596596 case 0x14111100:
597597 case 0x22211100:
598598 case 0x22112100:
599− if (s->component_id[0] == 'R' && s->component_id[1] == 'G' && s->component_id[B] == 'B') {
599+ if (s->component_id[0] == 'R' && s->component_id[1] == 'G' && s->component_id[2] == 'B') {
600600 if (s->bits <= 8) s->avctx->pix_fmt = AV_PIX_FMT_GBRP;
601601 else
602602 goto unk_pixfmt;

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