]> git.sesse.net Git - ffmpeg/commit
avformat: Add and use helper function to add attachment streams
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Mon, 29 Mar 2021 05:58:56 +0000 (07:58 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Thu, 1 Apr 2021 16:23:13 +0000 (18:23 +0200)
commit39ecb63d0f082ee3b2ac2ac65577170deb245ec4
treedec03fe40d01b51e21929d00c3e45732163447a5
parentb7b73e83e3d5c78a5fea96a6bcae02e1f0a5c45f
avformat: Add and use helper function to add attachment streams

All instances of adding attached pictures to a stream or adding
a stream and an attached packet to said stream have several things
in common like setting the index and flags of the packet, setting
the stream disposition etc. This commit therefore factors this out.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavformat/apetag.c
libavformat/flac_picture.c
libavformat/id3v2.c
libavformat/internal.h
libavformat/matroskadec.c
libavformat/mov.c
libavformat/utils.c
libavformat/wtvdec.c