Skip to content

Commit e66b2e6

Browse files
Merge pull request #78 from FransM/skipunknowncodec
Ignore unknown codecs in hello_world
2 parents 0de73c1 + d759f01 commit e66b2e6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

0_hello_world.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ int main(int argc, const char *argv[])
105105

106106
if (pLocalCodec==NULL) {
107107
logging("ERROR unsupported codec!");
108-
return -1;
108+
// In this example if the codec is not found we just skip it
109+
continue;
109110
}
110111

111112
// when the stream is a video we store its index, codec parameters and codec

0 commit comments

Comments
 (0)