History

avfilter/avfiltergraph: Check for allocation failure in avfilter_graph_queue_command()

Fixes: CID1396538

Michael Niedermayer committed 9 years ago

Commit 55d53cb1 parent 5036e211 file · +3 −0Browse files

Showing the changes to libavfilter/avfiltergraph.c (1 of 1 file). Show all

Unified · Split

libavfilter/avfiltergraph.c+3−0
@@ -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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t