Commit d6855008 authored by michael's avatar michael

Do not try to duplicate packets that have data==NULL.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16483 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7d0edcaa
...@@ -295,7 +295,7 @@ int av_get_packet(ByteIOContext *s, AVPacket *pkt, int size) ...@@ -295,7 +295,7 @@ int av_get_packet(ByteIOContext *s, AVPacket *pkt, int size)
int av_dup_packet(AVPacket *pkt) int av_dup_packet(AVPacket *pkt)
{ {
if (pkt->destruct != av_destruct_packet) { if (pkt->destruct != av_destruct_packet && pkt->data) {
uint8_t *data; uint8_t *data;
/* We duplicate the packet and don't forget to add the padding again. */ /* 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) if((unsigned)pkt->size > (unsigned)pkt->size + FF_INPUT_BUFFER_PADDING_SIZE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment