avformat/libquvi: Forward whitelists to subdemuxer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
							parent
							
								
									7292b0477a
								
							
						
					
					
						commit
						ad5f861b8c
					
				| @ -22,6 +22,7 @@ | |||||||
| 
 | 
 | ||||||
| #include "libavformat/avformat.h" | #include "libavformat/avformat.h" | ||||||
| #include "libavformat/internal.h" | #include "libavformat/internal.h" | ||||||
|  | #include "libavutil/avassert.h" | ||||||
| #include "libavutil/opt.h" | #include "libavutil/opt.h" | ||||||
| 
 | 
 | ||||||
| typedef struct { | typedef struct { | ||||||
| @ -75,6 +76,10 @@ static int libquvi_read_header(AVFormatContext *s) | |||||||
|     if (rc != QUVI_OK) |     if (rc != QUVI_OK) | ||||||
|         goto quvi_fail; |         goto quvi_fail; | ||||||
| 
 | 
 | ||||||
|  |     av_assert0(!qc->fmtctx->codec_whitelist && !qc->fmtctx->format_whitelist); | ||||||
|  |     qc->fmtctx-> codec_whitelist = av_strdup(s->codec_whitelist); | ||||||
|  |     qc->fmtctx->format_whitelist = av_strdup(s->format_whitelist); | ||||||
|  | 
 | ||||||
|     ret = avformat_open_input(&qc->fmtctx, media_url, NULL, NULL); |     ret = avformat_open_input(&qc->fmtctx, media_url, NULL, NULL); | ||||||
|     if (ret < 0) |     if (ret < 0) | ||||||
|         goto end; |         goto end; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user