History

avdevice/decklink_dec: map the raw_format instead of hardcode

The patch will change the numerical values for the string constants so bump micro version.

Limin Wang committed 5 years ago

Commit 09f1d151 parent c055a474 files · +19 −9Browse files

Showing the changes to libavdevice/decklink_dec.cpp (1 of 4 files). Show all

Unified · Split

libavdevice/decklink_dec.cpp+2−1
@@ -1152,7 +1152,8 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx) · 1151 unmodified lines
11521152 ctx->video_pts_source = cctx->video_pts_source;
11531153 ctx->draw_bars = cctx->draw_bars;
11541154 ctx->audio_depth = cctx->audio_depth;
1155− ctx->raw_format = (BMDPixelFormat)cctx->raw_format;
1155+ if (cctx->raw_format > 0 && (unsigned int)cctx->raw_format < FF_ARRAY_ELEMS(decklink_raw_format_map))
1156+ ctx->raw_format = decklink_raw_format_map[cctx->raw_format];
11561157 cctx->ctx = ctx;
11571158
11581159 /* Check audio channel option for valid values: 2, 8 or 16 */

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