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:
1b9bbf8
)
Do not try to duplicate packets that have data==NULL.
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 7 Jan 2009 20:44:23 +0000
(20:44 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 7 Jan 2009 20:44:23 +0000
(20:44 +0000)
Originally committed as revision 16483 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
eb55499
..
8a6784a
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-295,7
+295,7
@@
int av_get_packet(ByteIOContext *s, AVPacket *pkt, int size)
int av_dup_packet(AVPacket *pkt)
{
- if (pkt->destruct != av_destruct_packet) {
+ if (pkt->destruct != av_destruct_packet
&& pkt->data
) {
uint8_t *data;
/* We duplicate the packet and don't forget to add the padding again. */
if((unsigned)pkt->size > (unsigned)pkt->size + FF_INPUT_BUFFER_PADDING_SIZE)