diff options
author | Tim Walker <[email protected]> | 2016-09-17 14:47:26 +0200 |
---|---|---|
committer | Tim Walker <[email protected]> | 2016-09-17 15:46:15 +0200 |
commit | 0b16fbf384d253ba6e76e524e7d334bba2f93270 (patch) | |
tree | c591251e07f3b042bdbcbd2316c0c3b19758d41c /libhb | |
parent | be6defbde7de260afc61d969c17a898a0fd28106 (diff) |
libhb: rename some masks to better reflect their purpose.
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/decavcodec.c | 2 | ||||
-rw-r--r-- | libhb/internal.h | 4 | ||||
-rw-r--r-- | libhb/muxavformat.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index ea0cad60d..3f66b83d4 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -1014,7 +1014,7 @@ static int decodeFrame( hb_work_object_t *w, packet_info_t * packet_info ) // libav avcodec_decode_video2() needs AVPacket flagged with // AV_PKT_FLAG_KEY for some codecs. For example, sequence of // PNG in a mov container. - if (packet_info->frametype & HB_FRAME_KEY) + if (packet_info->frametype & HB_FRAME_MASK_KEY) { avp.flags |= AV_PKT_FLAG_KEY; } diff --git a/libhb/internal.h b/libhb/internal.h index 742046680..c189591b4 100644 --- a/libhb/internal.h +++ b/libhb/internal.h @@ -79,8 +79,8 @@ struct hb_buffer_settings_s #define HB_FRAME_P 0x10 #define HB_FRAME_B 0x20 #define HB_FRAME_BREF 0x40 -#define HB_FRAME_KEY 0x0F -#define HB_FRAME_REF 0xF0 +#define HB_FRAME_MASK_KEY 0x0F +#define HB_FRAME_MASK_REF 0xF0 uint8_t frametype; // Picture flags used by filters diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c index 7b8bec67a..abdee80b5 100644 --- a/libhb/muxavformat.c +++ b/libhb/muxavformat.c @@ -1169,7 +1169,7 @@ static int avformatMux(hb_mux_object_t *m, hb_mux_data_t *track, hb_buffer_t *bu pkt.flags |= AV_PKT_FLAG_KEY; } } - else if (buf->s.frametype & HB_FRAME_KEY) + else if (buf->s.frametype & HB_FRAME_MASK_KEY) { pkt.flags |= AV_PKT_FLAG_KEY; } |