mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
asyncts: cosmetics: reindent
This commit is contained in:
parent
b35e5d985d
commit
0ee440fe38
@ -158,19 +158,19 @@ static int request_frame(AVFilterLink *link)
|
||||
handle_trimming(ctx);
|
||||
|
||||
if (nb_samples = get_delay(s)) {
|
||||
AVFilterBufferRef *buf = ff_get_audio_buffer(link, AV_PERM_WRITE,
|
||||
nb_samples);
|
||||
if (!buf)
|
||||
return AVERROR(ENOMEM);
|
||||
ret = avresample_convert(s->avr, buf->extended_data,
|
||||
buf->linesize[0], nb_samples, NULL, 0, 0);
|
||||
if (ret <= 0) {
|
||||
avfilter_unref_bufferp(&buf);
|
||||
return (ret < 0) ? ret : AVERROR_EOF;
|
||||
}
|
||||
AVFilterBufferRef *buf = ff_get_audio_buffer(link, AV_PERM_WRITE,
|
||||
nb_samples);
|
||||
if (!buf)
|
||||
return AVERROR(ENOMEM);
|
||||
ret = avresample_convert(s->avr, buf->extended_data,
|
||||
buf->linesize[0], nb_samples, NULL, 0, 0);
|
||||
if (ret <= 0) {
|
||||
avfilter_unref_bufferp(&buf);
|
||||
return (ret < 0) ? ret : AVERROR_EOF;
|
||||
}
|
||||
|
||||
buf->pts = s->pts;
|
||||
return ff_filter_frame(link, buf);
|
||||
buf->pts = s->pts;
|
||||
return ff_filter_frame(link, buf);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user