This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
Add a goto for init failure instead of duplicate calls to ac3_encode_close().
Originally committed as revision 26030 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Justin Ruggles
15 years ago
parent
c41ac4f82e
commit
89bedc4d2e
1 changed files
with
5 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-4
libavcodec/ac3enc.c
+ 5
- 4
libavcodec/ac3enc.c
View File
@@ -1761,19 +1761,20 @@ static av_cold int ac3_encode_init(AVCodecContext *avctx)
s->mdct.avctx = avctx;
ret = mdct_init(&s->mdct, 9);
if (ret) {
ac3_encode_close(avctx);
return ret;
goto init_fail;
}
ret = allocate_buffers(avctx);
if (ret) {
ac3_encode_close(avctx);
return ret;
goto init_fail;
}
avctx->coded_frame= avcodec_alloc_frame();
return 0;
init_fail:
ac3_encode_close(avctx);
return ret;
}
Write
Preview
Loading…
Cancel
Save