lavf: use AVStream.discard to disable queueing attached pictures.
This commit is contained in:
@@ -519,7 +519,8 @@ static void queue_attached_pictures(AVFormatContext *s)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < s->nb_streams; 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;
|
AVPacket copy = s->streams[i]->attached_pic;
|
||||||
copy.destruct = NULL;
|
copy.destruct = NULL;
|
||||||
add_to_pktbuf(&s->raw_packet_buffer, ©, &s->raw_packet_buffer_end);
|
add_to_pktbuf(&s->raw_packet_buffer, ©, &s->raw_packet_buffer_end);
|
||||||
|
Reference in New Issue
Block a user