avconv: do not free muxed packet on streamcopy.
The packet belongs to lavf, the caller must not free it or access it in any other way. No change in practice, since destruct is set to NULL anyway.
This commit is contained in:
parent
b4dc6dccba
commit
c8977f6d26
1
avconv.c
1
avconv.c
@ -1045,7 +1045,6 @@ static void do_streamcopy(InputStream *ist, OutputStream *ost, const AVPacket *p
|
|||||||
|
|
||||||
write_frame(of->ctx, &opkt, ost);
|
write_frame(of->ctx, &opkt, ost);
|
||||||
ost->st->codec->frame_number++;
|
ost->st->codec->frame_number++;
|
||||||
av_free_packet(&opkt);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rate_emu_sleep(InputStream *ist)
|
static void rate_emu_sleep(InputStream *ist)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user