diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-24 22:55:51 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-24 22:55:55 +0100 |
commit | df38883607d256135082d76f22f4f93051dda690 (patch) | |
tree | 573f9d9719c3165a177a24c55348acc0f29a0ecf /libavformat/rtpdec_hevc.c | |
parent | 3804d73e46517a7db8464f5affd49b9406dc91ba (diff) | |
parent | 5956f489d0452ff6dea6b6b81b4fa8e596fc5684 (diff) | |
download | ffmpeg-df38883607d256135082d76f22f4f93051dda690.tar.gz |
Merge commit '5956f489d0452ff6dea6b6b81b4fa8e596fc5684'
* commit '5956f489d0452ff6dea6b6b81b4fa8e596fc5684':
rtpdec_hevc: Add asterisks at the start of each long comment line
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpdec_hevc.c')
-rw-r--r-- | libavformat/rtpdec_hevc.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/libavformat/rtpdec_hevc.c b/libavformat/rtpdec_hevc.c index ba7bd45627..b374e096a6 100644 --- a/libavformat/rtpdec_hevc.c +++ b/libavformat/rtpdec_hevc.c @@ -228,19 +228,19 @@ static int hevc_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_hevc_ctx } /* - decode the HEVC payload header according to section 4 of draft version 6: - - 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |F| Type | LayerId | TID | - +-------------+-----------------+ - - Forbidden zero (F): 1 bit - NAL unit type (Type): 6 bits - NUH layer ID (LayerId): 6 bits - NUH temporal ID plus 1 (TID): 3 bits - */ + * decode the HEVC payload header according to section 4 of draft version 6: + * + * 0 1 + * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + * |F| Type | LayerId | TID | + * +-------------+-----------------+ + * + * Forbidden zero (F): 1 bit + * NAL unit type (Type): 6 bits + * NUH layer ID (LayerId): 6 bits + * NUH temporal ID plus 1 (TID): 3 bits + */ nal_type = (buf[0] >> 1) & 0x3f; lid = ((buf[0] << 5) & 0x20) | ((buf[1] >> 3) & 0x1f); tid = buf[1] & 0x07; @@ -318,17 +318,17 @@ static int hevc_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_hevc_ctx len -= RTP_HEVC_PAYLOAD_HEADER_SIZE; /* - decode the FU header - - 0 1 2 3 4 5 6 7 - +-+-+-+-+-+-+-+-+ - |S|E| FuType | - +---------------+ - - Start fragment (S): 1 bit - End fragment (E): 1 bit - FuType: 6 bits - */ + * decode the FU header + * + * 0 1 2 3 4 5 6 7 + * +-+-+-+-+-+-+-+-+ + * |S|E| FuType | + * +---------------+ + * + * Start fragment (S): 1 bit + * End fragment (E): 1 bit + * FuType: 6 bits + */ first_fragment = buf[0] & 0x80; last_fragment = buf[0] & 0x40; fu_type = buf[0] & 0x3f; |