File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 71
71
#:options-dict [o #f ]
72
72
#:file [f #f ])
73
73
(stream-bundle rs s st ctx o f))
74
- (define (fill-stream-bundle bundle [use-type 'encode ])
75
- (define table (make-hash))
76
- (for ([s (in-list (stream-bundle-streams bundle))]
77
- [index (in-naturals)])
78
- (match s
79
- [(struct* codec-obj ([id id]
80
- [type type]))
81
- (define codec ((match use-type
82
- ['encode avcodec-find-encoder]
83
- ['decode avcodec-find-decoder])
84
- id))
85
- (set-codec-obj-codec! s codec)
86
- (set-codec-obj-index! s index)
87
- (set-codec-obj-codec-context! s (avcodec-alloc-context3 codec))
88
- (dict-update! table type
89
- (λ (rst) (append rst (list s)))
90
- (λ () '() ))]))
91
- (set-stream-bundle-stream-table! bundle table)
92
- bundle)
93
74
94
75
(struct codec-obj (codec-parameters
95
76
type
You can’t perform that action at this time.
0 commit comments