History

avcodec/hevc_mp4toannexb_bsf: use HEVCNALUnitType instead of integer literal

Zhao Zhili committed 2 years ago

Commit b7ac1f91 parent 99debe51 file · +2 −1Browse files

Unified · Split

libavcodec/hevc_mp4toannexb_bsf.c+2−1
@@ -157,7 +157,8 @@ static int hevc_mp4toannexb_filter(AVBSFContext *ctx, AVPacket *out) · 156 unmodified lines
157 nalu_type = (bytestream2_peek_byte(&gb) >> 1) & 0x3f;157 nalu_type = (bytestream2_peek_byte(&gb) >> 1) & 0x3f;
158 158
159 /* prepend extradata to IRAP frames */159 /* prepend extradata to IRAP frames */
160 is_irap = nalu_type >= 16 && nalu_type <= 23;160 is_irap = nalu_type >= HEVC_NAL_BLA_W_LP &&
161 nalu_type <= HEVC_NAL_RSV_IRAP_VCL23;
161 add_extradata = is_irap && !got_irap;162 add_extradata = is_irap && !got_irap;
162 extra_size = add_extradata * ctx->par_out->extradata_size;163 extra_size = add_extradata * ctx->par_out->extradata_size;
163 got_irap |= is_irap;164 got_irap |= is_irap;

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