[FFmpeg-devel] [PATCH] oggdec: factorize ogg_new_stream() invocation in ogg_read_page()
Stefano Sabatini
stefano.sabatini-lala at poste.it
Tue May 24 16:18:20 CEST 2011
Slightly simplify.
---
libavformat/oggdec.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 61a71c6..0e1f8a4 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -258,10 +258,8 @@ static int ogg_read_page(AVFormatContext *s, int *str)
}
ogg->curidx = -1;
ogg->nstreams = 0;
- idx = ogg_new_stream(s, serial, 0);
- } else {
- idx = ogg_new_stream(s, serial, 1);
}
+ idx = ogg_new_stream(s, serial, !ogg->headers);
if (idx < 0)
return idx;
}
--
1.7.2.3
More information about the ffmpeg-devel
mailing list