[FFmpeg-cvslog] avcodec/h264_metadata_bsf: Don't add AUD to extradata
Andreas Rheinhardt
git at videolan.org
Sat Apr 3 01:19:05 EEST 2021
ffmpeg | branch: release/4.4 | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Apr 2 16:59:42 2021 +0200| [0ccd2540b0526f7d6f62951840f6149ad021ddf8] | committer: Andreas Rheinhardt
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 at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
(cherry picked from commit b917218c35d240d9266c163103353e51facb0cae)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0ccd2540b0526f7d6f62951840f6149ad021ddf8
---
libavcodec/h264_metadata_bsf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/h264_metadata_bsf.c b/libavcodec/h264_metadata_bsf.c
index 6e58c0be1d..06d23e3142 100644
--- a/libavcodec/h264_metadata_bsf.c
+++ b/libavcodec/h264_metadata_bsf.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list