Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
44c8f7df
Commit
44c8f7df
authored
Apr 27, 2023
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/adtsenc: do not pass NULL to av_log()
parent
97befd7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
adtsenc.c
libavformat/adtsenc.c
+3
-3
No files found.
libavformat/adtsenc.c
View file @
44c8f7df
...
...
@@ -127,14 +127,14 @@ static int adts_write_header(AVFormatContext *s)
return
0
;
}
static
int
adts_write_frame_header
(
ADTSContext
*
ctx
,
static
int
adts_write_frame_header
(
A
VFormatContext
*
s
,
A
DTSContext
*
ctx
,
uint8_t
*
buf
,
int
size
,
int
pce_size
)
{
PutBitContext
pb
;
unsigned
full_frame_size
=
(
unsigned
)
ADTS_HEADER_SIZE
+
size
+
pce_size
;
if
(
full_frame_size
>
ADTS_MAX_FRAME_BYTES
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"ADTS
frame size too large: %u (max %d)
\n
"
,
av_log
(
s
,
AV_LOG_ERROR
,
"
frame size too large: %u (max %d)
\n
"
,
full_frame_size
,
ADTS_MAX_FRAME_BYTES
);
return
AVERROR_INVALIDDATA
;
}
...
...
@@ -192,7 +192,7 @@ static int adts_write_packet(AVFormatContext *s, AVPacket *pkt)
}
}
if
(
adts
->
write_adts
)
{
int
err
=
adts_write_frame_header
(
adts
,
buf
,
pkt
->
size
,
int
err
=
adts_write_frame_header
(
s
,
adts
,
buf
,
pkt
->
size
,
adts
->
pce_size
);
if
(
err
<
0
)
return
err
;
...
...
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