There was an error while loading. Please reload this page.
1 parent b915870 commit a2ddd30Copy full SHA for a2ddd30
1 file changed
src/transcoding/transcode/log.h
@@ -58,8 +58,8 @@
58
#define tvh_context_log(self, level, fmt, ...) \
59
do { \
60
tvh_stream_log((self)->stream, (level), "[%s => %s]: " fmt, \
61
- ((self)->iavctx) ? (self)->iavctx->codec->name : "<unknown>", \
62
- ((self)->oavctx) ? (self)->oavctx->codec->name : "<unknown>", \
+ ((self)->iavctx && (self)->iavctx->codec) ? (self)->iavctx->codec->name : "<unknown>", \
+ ((self)->oavctx && (self)->oavctx->codec) ? (self)->oavctx->codec->name : "<unknown>", \
63
##__VA_ARGS__); \
64
} while (0)
65
0 commit comments