Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b750b67d
Commit
b750b67d
authored
Jan 20, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/img2dec: Use AVOpenCallback
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
2cb8edea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
img2dec.c
libavformat/img2dec.c
+5
-1
No files found.
libavformat/img2dec.c
View file @
b750b67d
...
...
@@ -377,6 +377,10 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)
int
size
[
3
]
=
{
0
},
ret
[
3
]
=
{
0
};
AVIOContext
*
f
[
3
]
=
{
NULL
};
AVCodecContext
*
codec
=
s1
->
streams
[
0
]
->
codec
;
AVOpenCallback
open_func
=
s1
->
open_cb
;
if
(
!
open_func
)
open_func
=
ffio_open2_wrapper
;
if
(
!
s
->
is_pipe
)
{
/* loop over input */
...
...
@@ -403,7 +407,7 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)
!
s
->
loop
&&
!
s
->
split_planes
)
{
f
[
i
]
=
s1
->
pb
;
}
else
if
(
avio_open2
(
&
f
[
i
],
filename
,
AVIO_FLAG_READ
,
}
else
if
(
open_func
(
s1
,
&
f
[
i
],
filename
,
AVIO_FLAG_READ
,
&
s1
->
interrupt_callback
,
NULL
)
<
0
)
{
if
(
i
>=
1
)
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment