Fixes: CID1396538
Showing the changes to libavfilter/avfiltergraph.c (1 of 1 file). Show all
Unified · Split
| @@ -1324,6 +1324,9 @@ int avfilter_graph_queue_command(AVFilterGraph *graph, const char *target, const · 1323 unmodified lines | |||
| 1324 | queue = &(*queue)->next; | 1324 | queue = &(*queue)->next; |
| 1325 | next = *queue; | 1325 | next = *queue; |
| 1326 | *queue = av_mallocz(sizeof(AVFilterCommand)); | 1326 | *queue = av_mallocz(sizeof(AVFilterCommand)); |
| 1327 | if (!*queue) | ||
| 1328 | return AVERROR(ENOMEM); | ||
| 1329 | |||
| 1327 | (*queue)->command = av_strdup(command); | 1330 | (*queue)->command = av_strdup(command); |
| 1328 | (*queue)->arg = av_strdup(arg); | 1331 | (*queue)->arg = av_strdup(arg); |
| 1329 | (*queue)->time = ts; | 1332 | (*queue)->time = ts; |