diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-05-06 20:37:22 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-05-10 07:42:21 +0200 |
commit | 3c3c13e67b72d9c4e0615e744ef2c1cdf8b2701e (patch) | |
tree | ad6293eeeb2ea38730a11d1f8e5d75989e89c82a /libavformat/utils.c | |
parent | d2da1dc4433367226024fa3ae2c747e55353f620 (diff) | |
download | ffmpeg-3c3c13e67b72d9c4e0615e744ef2c1cdf8b2701e.tar.gz |
avformat/utils: Move avformat_queue_attached_pictures to demux_utils.c
AVStream.attached_pic is only used for demuxers.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index b20dad2458..492fca000a 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -175,29 +175,6 @@ int av_filename_number_test(const char *filename) (av_get_frame_filename(buf, sizeof(buf), filename, 1) >= 0); } -int avformat_queue_attached_pictures(AVFormatContext *s) -{ - FFFormatContext *const si = ffformatcontext(s); - int ret; - for (unsigned i = 0; i < s->nb_streams; i++) - if (s->streams[i]->disposition & AV_DISPOSITION_ATTACHED_PIC && - s->streams[i]->discard < AVDISCARD_ALL) { - if (s->streams[i]->attached_pic.size <= 0) { - av_log(s, AV_LOG_WARNING, - "Attached picture on stream %d has invalid size, " - "ignoring\n", i); - continue; - } - - ret = avpriv_packet_list_put(&si->raw_packet_buffer, - &s->streams[i]->attached_pic, - av_packet_ref, 0); - if (ret < 0) - return ret; - } - return 0; -} - int ff_add_attached_pic(AVFormatContext *s, AVStream *st0, AVIOContext *pb, AVBufferRef **buf, int size) { |