summaryrefslogtreecommitdiff
path: root/src/rmd_flush_to_ogg.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-10-08 01:29:12 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-10-08 01:29:12 -0700
commita031634bd64c7f30c4ace5ca06a5a47600b42f47 (patch)
tree919e13ed1ba2e6443fe952288085576322748405 /src/rmd_flush_to_ogg.c
parentbd53002a2bf51d48992613601719d180fed09975 (diff)
*: more cosmetic formatting cleanups
Making things a bit more consistent
Diffstat (limited to 'src/rmd_flush_to_ogg.c')
-rw-r--r--src/rmd_flush_to_ogg.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/rmd_flush_to_ogg.c b/src/rmd_flush_to_ogg.c
index 100c5d1..ff5332d 100644
--- a/src/rmd_flush_to_ogg.c
+++ b/src/rmd_flush_to_ogg.c
@@ -45,7 +45,8 @@
//will invalidate it. But we must have pages from
//both streams at every time in
//order to do correct multiplexing
-static void page_copy(ogg_page *new, ogg_page *old) {
+static void page_copy(ogg_page *new, ogg_page *old)
+{
new->header_len = old->header_len;
new->header = malloc(new->header_len);
@@ -57,13 +58,15 @@ static void page_copy(ogg_page *new, ogg_page *old) {
}
//free our copy
-static void page_free(ogg_page *pg) {
+static void page_free(ogg_page *pg)
+{
pg->header_len = pg->body_len = 0;
free(pg->header);
free(pg->body);
}
-void *rmdFlushToOgg(ProgData *pdata) {
+void *rmdFlushToOgg(ProgData *pdata)
+{
int videoflag = 0, audioflag = 0;
double video_bytesout = 0, audio_bytesout = 0;
ogg_page videopage, //owned by libogg
© All Rights Reserved