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
a39c5c4c
Commit
a39c5c4c
authored
Aug 16, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dv: fix null ptr dereference
Fixes Ticket1640 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f0896a6b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
dv.c
libavformat/dv.c
+5
-1
No files found.
libavformat/dv.c
View file @
a39c5c4c
...
@@ -419,9 +419,13 @@ static int64_t dv_frame_offset(AVFormatContext *s, DVDemuxContext *c,
...
@@ -419,9 +419,13 @@ static int64_t dv_frame_offset(AVFormatContext *s, DVDemuxContext *c,
void
ff_dv_offset_reset
(
DVDemuxContext
*
c
,
int64_t
frame_offset
)
void
ff_dv_offset_reset
(
DVDemuxContext
*
c
,
int64_t
frame_offset
)
{
{
c
->
frames
=
frame_offset
;
c
->
frames
=
frame_offset
;
if
(
c
->
ach
)
if
(
c
->
ach
)
{
if
(
c
->
sys
)
{
c
->
abytes
=
av_rescale_q
(
c
->
frames
,
c
->
sys
->
time_base
,
c
->
abytes
=
av_rescale_q
(
c
->
frames
,
c
->
sys
->
time_base
,
(
AVRational
){
8
,
c
->
ast
[
0
]
->
codec
->
bit_rate
});
(
AVRational
){
8
,
c
->
ast
[
0
]
->
codec
->
bit_rate
});
}
else
av_log
(
c
->
fctx
,
AV_LOG_ERROR
,
"cannot adjust audio bytes
\n
"
);
}
c
->
audio_pkt
[
0
].
size
=
c
->
audio_pkt
[
1
].
size
=
0
;
c
->
audio_pkt
[
0
].
size
=
c
->
audio_pkt
[
1
].
size
=
0
;
c
->
audio_pkt
[
2
].
size
=
c
->
audio_pkt
[
3
].
size
=
0
;
c
->
audio_pkt
[
2
].
size
=
c
->
audio_pkt
[
3
].
size
=
0
;
}
}
...
...
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