summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/rmd_init_encoder.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-06-20 01:11:56 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-06-23 18:04:42 -0700
commit58e5ec09e0feb7b6ebe2fc89ba32731b20a1ce39 (patch)
tree5b6883b48d525a8ca6506fdd7796dd93dc57e797 /recordmydesktop/src/rmd_init_encoder.c
parent001c13da0690b9eb6d7d5642099479e63041fbec (diff)
*: more code and synchronization cleanups
Not going to bother with granular commit messages yet, not til things get reasonably sane
Diffstat (limited to 'recordmydesktop/src/rmd_init_encoder.c')
-rw-r--r--recordmydesktop/src/rmd_init_encoder.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/recordmydesktop/src/rmd_init_encoder.c b/recordmydesktop/src/rmd_init_encoder.c
index dee0ba3..da442f2 100644
--- a/recordmydesktop/src/rmd_init_encoder.c
+++ b/recordmydesktop/src/rmd_init_encoder.c
@@ -126,7 +126,7 @@ void rmdInitEncoder(ProgData *pdata,EncData *enc_data_t,int buffer_ready) {
//init ogg streams
//skeleton first
- ogg_stream_init(&m_ogg_skel,y0);
+ ogg_stream_init(&m_ogg_skel, y0);
m_add_fishead_packet(&m_ogg_skel);
if (ogg_stream_pageout(&m_ogg_skel,&skel_og_pg)!= 1) {
fprintf (stderr, "Internal Ogg library error.\n");
@@ -134,8 +134,6 @@ void rmdInitEncoder(ProgData *pdata,EncData *enc_data_t,int buffer_ready) {
}
fwrite(skel_og_pg.header,1,skel_og_pg.header_len,enc_data_t->fp);
fwrite(skel_og_pg.body,1,skel_og_pg.body_len,enc_data_t->fp);
-
-
ogg_stream_init(&enc_data_t->m_ogg_ts,y1);
if (!pdata->args.nosound)
@@ -326,7 +324,6 @@ void rmdInitEncoder(ProgData *pdata,EncData *enc_data_t,int buffer_ready) {
}
fwrite(skel_og_pg.header,1,skel_og_pg.header_len,enc_data_t->fp);
-
//theora buffer allocation, if any
if (!buffer_ready) {
enc_data_t->yuv.y=(unsigned char *)malloc(enc_data_t->m_th_inf.height*
© All Rights Reserved