projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e546aa
)
indention
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 1 Apr 2007 16:14:19 +0000
(16:14 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 1 Apr 2007 16:14:19 +0000
(16:14 +0000)
Originally committed as revision 8590 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
4539cb9
..
2129c9d
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-830,12
+830,12
@@
int avcodec_open(AVCodecContext *avctx, AVCodec *codec)
avctx->codec_id = codec->id;
avctx->frame_number = 0;
if(avctx->codec->init){
- ret = avctx->codec->init(avctx);
- if (ret < 0) {
- av_freep(&avctx->priv_data);
- avctx->codec= NULL;
- goto end;
- }
+
ret = avctx->codec->init(avctx);
+
if (ret < 0) {
+
av_freep(&avctx->priv_data);
+
avctx->codec= NULL;
+
goto end;
+
}
}
ret=0;
end: