[FFmpeg-devel] [PATCH] avformat/avisynth simplify packet allocation
Timothy Gu
timothygu99 at gmail.com
Fri Jan 10 00:53:48 CET 2014
On Jan 9, 2014 10:35 AM, "Michael Niedermayer" <michaelni at gmx.at> wrote:
>
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
> libavformat/avisynth.c | 38 ++++++++++++++------------------------
> 1 file changed, 14 insertions(+), 24 deletions(-)
>
> diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
> index 99fe34c..b837bd9 100644
> --- a/libavformat/avisynth.c
> +++ b/libavformat/avisynth.c
> @@ -401,10 +401,10 @@ static void avisynth_next_stream(AVFormatContext
*s, AVStream **st,
> {
> AviSynthContext *avs = s->priv_data;
>
> - pkt->stream_index = avs->curr_stream++;
> + avs->curr_stream++;
[...]
> - *st = s->streams[pkt->stream_index];
> + *st = s->streams[avs->curr_stream];
Shouldn't it be curr_stream - 1?
> if ((*st)->discard == AVDISCARD_ALL)
> *discard = 1;
> else
[...]
Timothy
More information about the ffmpeg-devel
mailing list