ref: e76f6023d7b32d95dc5839d5dbcca57ccfe4a23a
parent: 7afe94dfda67533f729b7df1c0a62503d844d532
author: Ralph Giles <[email protected]>
date: Wed Oct 3 10:25:29 EDT 2012
Only clear ogg_stream_state if it's initialized. Corrects a crash when rtpdump.opus exists, but isn't valid data.
--- a/src/opusrtp.c
+++ b/src/opusrtp.c
@@ -608,7 +608,8 @@
}
}
- ogg_stream_clear(&os);
+ if (state > 0)
+ ogg_stream_clear(&os);
ogg_sync_clear(&oy);
fclose(in);
return 0;