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
948e97a2
Commit
948e97a2
authored
Jun 14, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcmdec: use av_assert()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
bb850480
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
pcmdec.c
libavformat/pcmdec.c
+2
-1
No files found.
libavformat/pcmdec.c
View file @
948e97a2
...
...
@@ -24,6 +24,7 @@
#include "pcm.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/avassert.h"
#define RAW_SAMPLES 1024
...
...
@@ -42,7 +43,7 @@ static int raw_read_packet(AVFormatContext *s, AVPacket *pkt)
return
ret
;
bps
=
av_get_bits_per_sample
(
s
->
streams
[
0
]
->
codec
->
codec_id
);
a
ssert
(
bps
);
// if false there IS a bug elsewhere (NOT in this function)
a
v_assert1
(
bps
);
// if false there IS a bug elsewhere (NOT in this function)
pkt
->
dts
=
pkt
->
pts
=
pkt
->
pos
*
8
/
(
bps
*
s
->
streams
[
0
]
->
codec
->
channels
);
...
...
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