OSDN Git Service

ffmpeg: fix massive leak occurring when seeking
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Fri, 3 Jun 2011 17:03:44 +0000 (19:03 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 5 Jun 2011 11:32:33 +0000 (13:32 +0200)
commite4841a404bdabfeafb917454d510b60d888cb761
tree60b2f0daf2fb8f17ec64915da85431df35a6b591
parentcea87fb2c38f175b9a0bd2a46617c155e67d4794
ffmpeg: fix massive leak occurring when seeking

Avoid to add frames to the vsrc_buffer in the case ist->pts <
start_time, as these frames are unused (and never released). In
particular this condition is verified with commands of the kind:
ffmpeg -i INPUT -ss TIME OUTPUT

Also allow a minor simplification.
ffmpeg.c