mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avpacket: use AVBuffer to allow refcounting the packets.
This will allow us to avoid copying the packets in many cases. This breaks ABI.
This commit is contained in:
parent
1cec0624d0
commit
1afddbe59e
22 changed files with 325 additions and 137 deletions
|
|
@ -201,6 +201,10 @@ static int str_read_packet(AVFormatContext *s,
|
|||
*ret_pkt = *pkt;
|
||||
pkt->data= NULL;
|
||||
pkt->size= -1;
|
||||
pkt->buf = NULL;
|
||||
#if FF_API_DESTRUCT_PACKET
|
||||
pkt->destruct = NULL;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue