transcode: log cleanups, some memory leaks fixed
This commit is contained in:
parent
2637ee0aad
commit
d1a014f329
5 changed files with 338 additions and 319 deletions
|
@ -30,6 +30,11 @@ libav_log_callback(void *ptr, int level, const char *fmt, va_list vl)
|
|||
else if(level == AV_LOG_PANIC)
|
||||
level = LOG_EMERG;
|
||||
|
||||
if (level == LOG_INFO) {
|
||||
if (!strncmp(message, "--prefix=/", 10))
|
||||
return;
|
||||
}
|
||||
|
||||
while(l < message + sizeof(message)) {
|
||||
nl = strstr(l, "\n");
|
||||
if(nl)
|
||||
|
|
|
@ -22,6 +22,10 @@
|
|||
#include "string.h"
|
||||
#include "atomic.h"
|
||||
|
||||
#ifndef PKTBUF_DATA_ALIGN
|
||||
#define PKTBUF_DATA_ALIGN 64
|
||||
#endif
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
|
@ -217,7 +221,7 @@ pktbuf_alloc(const void *data, size_t size)
|
|||
pb->pb_size = size;
|
||||
|
||||
if(size > 0) {
|
||||
pb->pb_data = malloc(size);
|
||||
pb->pb_data = aligned_alloc(PKTBUF_DATA_ALIGN, size + 8);
|
||||
if(data != NULL)
|
||||
memcpy(pb->pb_data, data, size);
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -29,6 +29,8 @@ typedef struct transcoder_prop {
|
|||
int32_t tp_bandwidth;
|
||||
char tp_language[4];
|
||||
int32_t tp_resolution;
|
||||
|
||||
long tp_nrprocessors;
|
||||
} transcoder_props_t;
|
||||
|
||||
extern uint32_t transcoding_enabled;
|
||||
|
|
|
@ -391,7 +391,7 @@ profile_chain_close(profile_chain_t *prch)
|
|||
if (prch->prch_gh)
|
||||
globalheaders_destroy(prch->prch_gh);
|
||||
#if ENABLE_LIBAV
|
||||
if (prch->prch_transcoder != NULL)
|
||||
if (prch->prch_transcoder)
|
||||
transcoder_destroy(prch->prch_transcoder);
|
||||
#endif
|
||||
if (prch->prch_muxer)
|
||||
|
|
Loading…
Add table
Reference in a new issue