mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 04:26:37 +08:00 
			
		
		
		
	avformat/libsrt: workaround conflict with ffmpeg cmdline option
Add 'srt_streamid' option as an alias for 'streamid'. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
		 Zhao Zhili
					Zhao Zhili
				
			
				
					committed by
					
						 Marton Balint
						Marton Balint
					
				
			
			
				
	
			
			
			 Marton Balint
						Marton Balint
					
				
			
						parent
						
							55c54ff744
						
					
				
				
					commit
					58614f7bee
				
			| @@ -1558,6 +1558,9 @@ This option doesn’t make sense in Rendezvous connection; the result | |||||||
| might be that simply one side will override the value from the other | might be that simply one side will override the value from the other | ||||||
| side and it’s the matter of luck which one would win | side and it’s the matter of luck which one would win | ||||||
|  |  | ||||||
|  | @item srt_streamid=@var{string} | ||||||
|  | Alias for @samp{streamid} to avoid conflict with ffmpeg command line option. | ||||||
|  |  | ||||||
| @item smoother=@var{live|file} | @item smoother=@var{live|file} | ||||||
| The type of Smoother used for the transmission for that socket, which | The type of Smoother used for the transmission for that socket, which | ||||||
| is responsible for the transmission and congestion control. The Smoother | is responsible for the transmission and congestion control. The Smoother | ||||||
|   | |||||||
| @@ -135,6 +135,7 @@ static const AVOption libsrt_options[] = { | |||||||
|     { "lossmaxttl",     "Maximum possible packet reorder tolerance",                            OFFSET(lossmaxttl),       AV_OPT_TYPE_INT,      { .i64 = -1 }, -1, INT_MAX,   .flags = D|E }, |     { "lossmaxttl",     "Maximum possible packet reorder tolerance",                            OFFSET(lossmaxttl),       AV_OPT_TYPE_INT,      { .i64 = -1 }, -1, INT_MAX,   .flags = D|E }, | ||||||
|     { "minversion",     "The minimum SRT version that is required from the peer",               OFFSET(minversion),       AV_OPT_TYPE_INT,      { .i64 = -1 }, -1, INT_MAX,   .flags = D|E }, |     { "minversion",     "The minimum SRT version that is required from the peer",               OFFSET(minversion),       AV_OPT_TYPE_INT,      { .i64 = -1 }, -1, INT_MAX,   .flags = D|E }, | ||||||
|     { "streamid",       "A string of up to 512 characters that an Initiator can pass to a Responder",  OFFSET(streamid),  AV_OPT_TYPE_STRING,   { .str = NULL },              .flags = D|E }, |     { "streamid",       "A string of up to 512 characters that an Initiator can pass to a Responder",  OFFSET(streamid),  AV_OPT_TYPE_STRING,   { .str = NULL },              .flags = D|E }, | ||||||
|  |     { "srt_streamid",   "A string of up to 512 characters that an Initiator can pass to a Responder",  OFFSET(streamid),  AV_OPT_TYPE_STRING,   { .str = NULL },              .flags = D|E }, | ||||||
|     { "smoother",       "The type of Smoother used for the transmission for that socket",       OFFSET(smoother),         AV_OPT_TYPE_STRING,   { .str = NULL },              .flags = D|E }, |     { "smoother",       "The type of Smoother used for the transmission for that socket",       OFFSET(smoother),         AV_OPT_TYPE_STRING,   { .str = NULL },              .flags = D|E }, | ||||||
|     { "messageapi",     "Enable message API",                                                   OFFSET(messageapi),       AV_OPT_TYPE_BOOL,     { .i64 = -1 }, -1, 1,         .flags = D|E }, |     { "messageapi",     "Enable message API",                                                   OFFSET(messageapi),       AV_OPT_TYPE_BOOL,     { .i64 = -1 }, -1, 1,         .flags = D|E }, | ||||||
|     { "transtype",      "The transmission type for the socket",                                 OFFSET(transtype),        AV_OPT_TYPE_INT,      { .i64 = SRTT_INVALID }, SRTT_LIVE, SRTT_INVALID, .flags = D|E, "transtype" }, |     { "transtype",      "The transmission type for the socket",                                 OFFSET(transtype),        AV_OPT_TYPE_INT,      { .i64 = SRTT_INVALID }, SRTT_LIVE, SRTT_INVALID, .flags = D|E, "transtype" }, | ||||||
|   | |||||||
| @@ -33,7 +33,7 @@ | |||||||
| // Also please add any ticket numbers that you believe might be affected here | // Also please add any ticket numbers that you believe might be affected here | ||||||
| #define LIBAVFORMAT_VERSION_MAJOR  59 | #define LIBAVFORMAT_VERSION_MAJOR  59 | ||||||
| #define LIBAVFORMAT_VERSION_MINOR   2 | #define LIBAVFORMAT_VERSION_MINOR   2 | ||||||
| #define LIBAVFORMAT_VERSION_MICRO 101 | #define LIBAVFORMAT_VERSION_MICRO 102 | ||||||
|  |  | ||||||
| #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ | #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ | ||||||
|                                                LIBAVFORMAT_VERSION_MINOR, \ |                                                LIBAVFORMAT_VERSION_MINOR, \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user