mirror of https://git.ffmpeg.org/ffmpeg.git
buffersrc: cosmetic: reindent.
This commit is contained in:
parent
ea07063fd8
commit
6adefeef45
|
@ -179,18 +179,17 @@ int av_buffersrc_add_ref(AVFilterContext *s, AVFilterBufferRef *buf, int flags)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (!(flags & AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT)) {
|
if (!(flags & AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT)) {
|
||||||
/* TODO reindent */
|
switch (s->outputs[0]->type) {
|
||||||
switch (s->outputs[0]->type) {
|
case AVMEDIA_TYPE_VIDEO:
|
||||||
case AVMEDIA_TYPE_VIDEO:
|
CHECK_VIDEO_PARAM_CHANGE(s, c, buf->video->w, buf->video->h, buf->format);
|
||||||
CHECK_VIDEO_PARAM_CHANGE(s, c, buf->video->w, buf->video->h, buf->format);
|
break;
|
||||||
break;
|
case AVMEDIA_TYPE_AUDIO:
|
||||||
case AVMEDIA_TYPE_AUDIO:
|
CHECK_AUDIO_PARAM_CHANGE(s, c, buf->audio->sample_rate, buf->audio->channel_layout,
|
||||||
CHECK_AUDIO_PARAM_CHANGE(s, c, buf->audio->sample_rate, buf->audio->channel_layout,
|
buf->format);
|
||||||
buf->format);
|
break;
|
||||||
break;
|
default:
|
||||||
default:
|
return AVERROR(EINVAL);
|
||||||
return AVERROR(EINVAL);
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (!(flags & AV_BUFFERSRC_FLAG_NO_COPY))
|
if (!(flags & AV_BUFFERSRC_FLAG_NO_COPY))
|
||||||
to_free = buf = copy_buffer_ref(s, buf);
|
to_free = buf = copy_buffer_ref(s, buf);
|
||||||
|
|
Loading…
Reference in New Issue