summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-19 22:12:37 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-22 20:04:11 +0200
commit5045786b7ee235787766337a2f0b05955ff6c649 (patch)
tree3c709fb28f156ca717d418aafa24c5a87a02aebd /libavformat
parent5ecdfd008bce961c3241eaa1f8dc06e82a6b12db (diff)
lavf: fix style for avformat_alloc_output_context2()
More consistent/readable.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 71c325a542..52d8a2dc16 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;