[FFmpeg-cvslog] lavf: use AVStream.discard to disable queueing attached pictures.

Anton Khirnov git at videolan.org
Wed Mar 21 02:35:00 CET 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Mar 18 17:35:49 2012 +0100| [40b41be3fa6c5bc3b064ffec97096524ac33af4d] | committer: Anton Khirnov

lavf: use AVStream.discard to disable queueing attached pictures.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=40b41be3fa6c5bc3b064ffec97096524ac33af4d
---

 libavformat/utils.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 7fd425f..d17b575 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -519,7 +519,8 @@ static void queue_attached_pictures(AVFormatContext *s)
 {
     int i;
     for (i = 0; i < s->nb_streams; i++)
-        if (s->streams[i]->disposition & AV_DISPOSITION_ATTACHED_PIC) {
+        if (s->streams[i]->disposition & AV_DISPOSITION_ATTACHED_PIC &&
+            s->streams[i]->discard < AVDISCARD_ALL) {
             AVPacket copy = s->streams[i]->attached_pic;
             copy.destruct = NULL;
             add_to_pktbuf(&s->raw_packet_buffer, &copy, &s->raw_packet_buffer_end);



More information about the ffmpeg-cvslog mailing list