This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
lavc: preserve avpkt->destruct in ff_alloc_packet().
Also, don't bother with saving/restoring data, av_init_packet doesn't touch it.
tags/n0.11
Anton Khirnov
13 years ago
parent
c179c9e19d
commit
e42e9b0e4d
1 changed files
with
2 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-3
libavcodec/utils.c
+ 2
- 3
libavcodec/utils.c
View File
@@ -838,14 +838,13 @@ int ff_alloc_packet(AVPacket *avpkt, int size)
return AVERROR(EINVAL);
if (avpkt->data) {
uint8_t *pkt_data
;
void *destruct = avpkt->destruct
;
if (avpkt->size < size)
return AVERROR(EINVAL);
pkt_data = avpkt->data;
av_init_packet(avpkt);
avpkt->d
ata = pkt_data
;
avpkt->d
estruct = destruct
;
avpkt->size = size;
return 0;
} else {
Write
Preview
Loading…
Cancel
Save