]> rtime.felk.cvut.cz Git - frescor/streamer.git/blobdiff - streamer.c
Updated to new FRHS protocol in ffmpeg
[frescor/streamer.git] / streamer.c
index 9b7a8bfcd321edaa712130568534b720e08a1d77..ee77884582e479cef4d6a6ed74d3b35e7b7cf431 100644 (file)
 #include <ul_logreg.h>
 #endif
 
-#ifdef CONFIG_STREAMER_WITH_FRSH
+#ifdef CONFIG_FFMPEG_WITH_FRSH
 #include <frsh.h>
-#endif
 
-#ifdef CONFIG_STREAMER_WITH_FRSH
 /*temporrary solution to pass network parameters */
-extern long int udp_budget, udp_period;
+extern long int avformat_frsh_budget, avformat_frsh_period;
 #endif /*CONFIG_STREAMER_WITH_FRSH*/
 
 static const char *sdp_file = "sdp.txt";
@@ -190,8 +188,8 @@ int main(int argc, char *argv[])
   if (ret) PERROR_AND_EXIT(ret, "frsh_init1");
 
   /* fill default network contract params */
-  udp_budget = 50000; 
-  udp_period = 500;
+  avformat_frsh_budget = 50000; 
+  avformat_frsh_period = 500;
 #endif /*CONFIG_FFMPEG_WITH_FRSH*/
 
   avcodec_register_all();