libucil/libucil-0.9.8-bz627890.patch
Petr Šabata 4a43a6358f RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/libucil#ebeae29a943b38decdbbad77d0afa2b6a8a5cdd3
2020-10-15 17:50:16 +02:00

18 lines
488 B
Diff

diff --git a/src/ucil_theora.c b/src/ucil_theora.c
index 0919a97..e2d00ef 100644
--- a/src/ucil_theora.c
+++ b/src/ucil_theora.c
@@ -1556,7 +1556,11 @@ ucil_theora_video_file_object_t *ucil_theora_create_video_filev( const char *pat
#endif
- theora_encode_init( &vobj->th, &vobj->ti );
+ if( theora_encode_init( &vobj->th, &vobj->ti ) != 0)
+ {
+ free( vobj );
+ return NULL;
+ }
vobj->full_queue = g_queue_new();
vobj->empty_queue = g_queue_new();