Mercurial > libavcodec.hg
comparison utils.c @ 4763:28f41c99b704 libavcodec
indention
author | michael |
---|---|
date | Sun, 01 Apr 2007 16:14:19 +0000 |
parents | 4d346a3ea729 |
children | 14e7131344b3 |
comparison
equal
deleted
inserted
replaced
4762:4d346a3ea729 | 4763:28f41c99b704 |
---|---|
828 | 828 |
829 avctx->codec = codec; | 829 avctx->codec = codec; |
830 avctx->codec_id = codec->id; | 830 avctx->codec_id = codec->id; |
831 avctx->frame_number = 0; | 831 avctx->frame_number = 0; |
832 if(avctx->codec->init){ | 832 if(avctx->codec->init){ |
833 ret = avctx->codec->init(avctx); | 833 ret = avctx->codec->init(avctx); |
834 if (ret < 0) { | 834 if (ret < 0) { |
835 av_freep(&avctx->priv_data); | 835 av_freep(&avctx->priv_data); |
836 avctx->codec= NULL; | 836 avctx->codec= NULL; |
837 goto end; | 837 goto end; |
838 } | 838 } |
839 } | 839 } |
840 ret=0; | 840 ret=0; |
841 end: | 841 end: |
842 entangled_thread_counter--; | 842 entangled_thread_counter--; |
843 return ret; | 843 return ret; |