set_maps: add exit to avoid uninitialized variable warning
Change-Id: I08e42adeab9f9fa0337173ba0923f3bc0dd36806
This commit is contained in:
Родитель
339391a8d4
Коммит
812506b80c
|
@ -42,6 +42,7 @@
|
||||||
// Use the `simple_decoder` example to decode this sample, and observe
|
// Use the `simple_decoder` example to decode this sample, and observe
|
||||||
// the change in the image at frames 22, 33, and 44.
|
// the change in the image at frames 22, 33, and 44.
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -177,9 +178,10 @@ int main(int argc, char **argv) {
|
||||||
memset(&info, 0, sizeof(info));
|
memset(&info, 0, sizeof(info));
|
||||||
|
|
||||||
encoder = get_vpx_encoder_by_name(argv[1]);
|
encoder = get_vpx_encoder_by_name(argv[1]);
|
||||||
if (!encoder)
|
if (encoder == NULL) {
|
||||||
die("Unsupported codec.");
|
die("Unsupported codec.");
|
||||||
|
}
|
||||||
|
assert(encoder != NULL);
|
||||||
info.codec_fourcc = encoder->fourcc;
|
info.codec_fourcc = encoder->fourcc;
|
||||||
info.frame_width = strtol(argv[2], NULL, 0);
|
info.frame_width = strtol(argv[2], NULL, 0);
|
||||||
info.frame_height = strtol(argv[3], NULL, 0);
|
info.frame_height = strtol(argv[3], NULL, 0);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче