Compare commits

..

1 Commits

Author SHA1 Message Date
Romain Vimont
6a8d851090 global_header 2018-12-01 14:31:16 +01:00
3 changed files with 1 additions and 4 deletions

View File

@@ -81,6 +81,7 @@ SDL_bool recorder_open(struct recorder *recorder, AVCodec *input_codec) {
ostream->codec->pix_fmt = AV_PIX_FMT_YUV420P; ostream->codec->pix_fmt = AV_PIX_FMT_YUV420P;
ostream->codec->width = recorder->declared_frame_size.width; ostream->codec->width = recorder->declared_frame_size.width;
ostream->codec->height = recorder->declared_frame_size.height; ostream->codec->height = recorder->declared_frame_size.height;
ostream->codec->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
#endif #endif
ostream->time_base = (AVRational) {1, 1000000}; // timestamps in us ostream->time_base = (AVRational) {1, 1000000}; // timestamps in us

View File

@@ -80,7 +80,6 @@ static process_t execute_server(const char *serial,
Uint16 max_size, Uint32 bit_rate, Uint16 max_size, Uint32 bit_rate,
SDL_bool tunnel_forward, const char *crop, SDL_bool tunnel_forward, const char *crop,
SDL_bool send_frame_meta) { SDL_bool send_frame_meta) {
LOGD("tunnel_forward=%d\n", (int) tunnel_forward);
char max_size_string[6]; char max_size_string[6];
char bit_rate_string[11]; char bit_rate_string[11];
sprintf(max_size_string, "%"PRIu16, max_size); sprintf(max_size_string, "%"PRIu16, max_size);

View File

@@ -64,7 +64,6 @@ public final class Server {
} }
// use "adb forward" instead of "adb tunnel"? (so the server must listen) // use "adb forward" instead of "adb tunnel"? (so the server must listen)
boolean tunnelForward = Boolean.parseBoolean(args[2]); boolean tunnelForward = Boolean.parseBoolean(args[2]);
Ln.d("tunnelForward = " + tunnelForward);
options.setTunnelForward(tunnelForward); options.setTunnelForward(tunnelForward);
if (args.length < 4) { if (args.length < 4) {
@@ -106,8 +105,6 @@ public final class Server {
} }
}); });
Ln.d("args: " + Arrays.toString(args));
Options options = createOptions(args); Options options = createOptions(args);
scrcpy(options); scrcpy(options);
} }