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
6d35aba1
Commit
6d35aba1
authored
Sep 25, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/img2dec: initialize pkt->pos for image pipes
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2497914a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
img2dec.c
libavformat/img2dec.c
+3
-0
exif-image-tiff
tests/ref/fate/exif-image-tiff
+1
-1
exif-image-webp
tests/ref/fate/exif-image-webp
+1
-1
No files found.
libavformat/img2dec.c
View file @
6d35aba1
...
...
@@ -450,6 +450,9 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)
pkt
->
pts
=
s
->
pts
;
}
if
(
s
->
is_pipe
)
pkt
->
pos
=
avio_tell
(
f
[
0
]);
pkt
->
size
=
0
;
for
(
i
=
0
;
i
<
3
;
i
++
)
{
if
(
f
[
i
])
{
...
...
tests/ref/fate/exif-image-tiff
View file @
6d35aba1
...
...
@@ -9,7 +9,7 @@ best_effort_timestamp=0
best_effort_timestamp_time=0.000000
pkt_duration=1
pkt_duration_time=0.040000
pkt_pos=
N/A
pkt_pos=
0
pkt_size=67604
width=200
height=112
...
...
tests/ref/fate/exif-image-webp
View file @
6d35aba1
...
...
@@ -9,7 +9,7 @@ best_effort_timestamp=0
best_effort_timestamp_time=0.000000
pkt_duration=1
pkt_duration_time=0.040000
pkt_pos=
N/A
pkt_pos=
0
pkt_size=39276
width=400
height=225
...
...
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