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
827faa18
Commit
827faa18
authored
Jul 06, 2019
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dnxhd_parser: Optimize insufficient buf size case
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
1707dbdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
dnxhd_parser.c
libavcodec/dnxhd_parser.c
+4
-0
No files found.
libavcodec/dnxhd_parser.c
View file @
827faa18
...
@@ -88,6 +88,10 @@ static int dnxhd_find_frame_end(DNXHDParserContext *dctx,
...
@@ -88,6 +88,10 @@ static int dnxhd_find_frame_end(DNXHDParserContext *dctx,
return
remaining
;
return
remaining
;
}
else
{
}
else
{
dctx
->
remaining
-=
buf_size
;
dctx
->
remaining
-=
buf_size
;
// Update variables for correctness, they are currently not used beyond here
state
=
-
1
;
dctx
->
cur_byte
+=
buf_size
-
i
;
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