rtpdec_hevc: Skip 1 byte (DOND) instead of 2 (DONL) between aggregation units
Only the first aggregation unit has 2 bytes (DONL) prepended, if such a field is in use. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
35c6ce76b1
commit
fe208ca54b
2 changed files with 10 additions and 7 deletions
|
@ -317,9 +317,15 @@ static int hevc_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_hevc_ctx
|
|||
buf += RTP_HEVC_PAYLOAD_HEADER_SIZE;
|
||||
len -= RTP_HEVC_PAYLOAD_HEADER_SIZE;
|
||||
|
||||
/* pass the HEVC DONL field */
|
||||
if (rtp_hevc_ctx->using_donl_field) {
|
||||
buf += RTP_HEVC_DONL_FIELD_SIZE;
|
||||
len -= RTP_HEVC_DONL_FIELD_SIZE;
|
||||
}
|
||||
|
||||
res = ff_h264_handle_aggregated_packet(ctx, pkt, buf, len,
|
||||
rtp_hevc_ctx->using_donl_field ?
|
||||
RTP_HEVC_DONL_FIELD_SIZE : 0,
|
||||
RTP_HEVC_DOND_FIELD_SIZE : 0,
|
||||
NULL, 0);
|
||||
if (res < 0)
|
||||
return res;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue