mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/pthread_frame: Reindentation
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
c85fcc96b7
commit
6599960940
@ -840,9 +840,8 @@ static av_cold int init_thread(PerThreadContext *p, int *threads_to_free,
|
||||
|
||||
if (codec->priv_data_size) {
|
||||
copy->priv_data = av_mallocz(codec->priv_data_size);
|
||||
if (!copy->priv_data) {
|
||||
if (!copy->priv_data)
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
if (codec->priv_class) {
|
||||
*(const AVClass **)copy->priv_data = codec->priv_class;
|
||||
@ -864,13 +863,14 @@ static av_cold int init_thread(PerThreadContext *p, int *threads_to_free,
|
||||
if (!first)
|
||||
copy->internal->is_copy = 1;
|
||||
|
||||
if (codec->init)
|
||||
if (codec->init) {
|
||||
err = codec->init(copy);
|
||||
if (err < 0) {
|
||||
if (codec->caps_internal & FF_CODEC_CAP_INIT_CLEANUP)
|
||||
p->thread_init = NEEDS_CLOSE;
|
||||
return err;
|
||||
}
|
||||
}
|
||||
p->thread_init = NEEDS_CLOSE;
|
||||
|
||||
if (first)
|
||||
|
Loading…
Reference in New Issue
Block a user