diff options
Diffstat (limited to 'libavformat/oggenc.c')
-rw-r--r-- | libavformat/oggenc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c index 2bd8e0d..9ab1ac0 100644 --- a/libavformat/oggenc.c +++ b/libavformat/oggenc.c @@ -261,6 +261,12 @@ static int ogg_interleave_per_granule(AVFormatContext *s, AVPacket *out, AVPacke OGGStreamContext *ogg = s->streams[out->stream_index]->priv_data; ogg->eos = 1; } + if(!s->packet_buffer) + s->packet_buffer_end= NULL; + + if(s->streams[out->stream_index]->last_in_packet_buffer == pktl) + s->streams[out->stream_index]->last_in_packet_buffer= NULL; + av_freep(&pktl); return 1; } else { |