Browse Source

avcodec/h264_metadata_bsf: Don't add AUD to extradata

This is a regression since switching to the generic CBS BSF code.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
(cherry picked from commit b917218c35)
tags/n4.4
Andreas Rheinhardt 4 years ago
parent
commit
0ccd2540b0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/h264_metadata_bsf.c

+ 1
- 1
libavcodec/h264_metadata_bsf.c View File

@@ -466,7 +466,7 @@ static int h264_metadata_update_fragment(AVBSFContext *bsf, AVPacket *pkt,
if (ctx->aud == BSF_ELEMENT_REMOVE)
ff_cbs_delete_unit(au, 0);
} else {
if (ctx->aud == BSF_ELEMENT_INSERT) {
if (pkt && ctx->aud == BSF_ELEMENT_INSERT) {
err = h264_metadata_insert_aud(bsf, au);
if (err < 0)
return err;


Loading…
Cancel
Save