Browse Source

oggdec: fix invalid free on error

The read_packet callback passes a pointer to a stack-allocated AVPacket.
Attempting to free it with av_free() makes no sense.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4
wm4 Michael Niedermayer 10 years ago
parent
commit
b173f5c155
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      libavformat/oggdec.c

+ 0
- 1
libavformat/oggdec.c View File

@@ -817,7 +817,6 @@ retry:
return psize; return psize;
fail: fail:
av_free_packet(pkt); av_free_packet(pkt);
av_free(pkt);
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
} }




Loading…
Cancel
Save