projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01fcc42
)
lavf: use AVStream.discard to disable queueing attached pictures.
author
Anton Khirnov
<anton@khirnov.net>
Sun, 18 Mar 2012 16:35:49 +0000
(17:35 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Tue, 20 Mar 2012 05:53:44 +0000
(06:53 +0100)
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index 7fd425f1cc0019bb5415228504be1a3fd049a872..d17b5752f1329728024d16f71e58594c0770b710 100644
(file)
--- 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, ©, &s->raw_packet_buffer_end);