[FFmpeg-cvslog] lavf: fix style for avformat_alloc_output_context2()
Stefano Sabatini
git at videolan.org
Sun May 22 20:41:51 CEST 2011
ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Thu May 19 22:12:37 2011 +0200| [5045786b7ee235787766337a2f0b05955ff6c649] | committer: Stefano Sabatini
lavf: fix style for avformat_alloc_output_context2()
More consistent/readable.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5045786b7ee235787766337a2f0b05955ff6c649
---
libavformat/utils.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 71c325a..52d8a2d 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2754,14 +2754,14 @@ int av_set_parameters(AVFormatContext *s, AVFormatParameters *ap)
int avformat_alloc_output_context2(AVFormatContext **avctx, AVOutputFormat *oformat,
const char *format, const char *filename)
{
- AVFormatContext *s= avformat_alloc_context();
+ AVFormatContext *s = avformat_alloc_context();
int ret = 0;
*avctx = NULL;
- if(!s)
+ if (!s)
goto nomem;
- if(!oformat){
+ if (!oformat) {
if (format) {
oformat = av_guess_format(format, NULL, NULL);
if (!oformat) {
@@ -2774,13 +2774,13 @@ int avformat_alloc_output_context2(AVFormatContext **avctx, AVOutputFormat *ofor
if (!oformat) {
ret = AVERROR(EINVAL);
av_log(s, AV_LOG_ERROR, "Unable to find a suitable output format for '%s'\n",
- filename);
+ filename);
goto error;
}
}
}
- s->oformat= oformat;
+ s->oformat = oformat;
if (s->oformat->priv_data_size > 0) {
s->priv_data = av_mallocz(s->oformat->priv_data_size);
if (!s->priv_data)
@@ -2792,7 +2792,7 @@ int avformat_alloc_output_context2(AVFormatContext **avctx, AVOutputFormat *ofor
} else
s->priv_data = NULL;
- if(filename)
+ if (filename)
av_strlcpy(s->filename, filename, sizeof(s->filename));
*avctx = s;
return 0;
More information about the ffmpeg-cvslog
mailing list