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
f5d5bc34
Commit
f5d5bc34
authored
Jun 04, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tak: simplify ff_tak_check_crc()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
b84de51f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
tak.c
libavcodec/tak.c
+1
-2
No files found.
libavcodec/tak.c
View file @
f5d5bc34
...
...
@@ -19,7 +19,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "libavutil/bswap.h"
#include "libavutil/crc.h"
#include "libavutil/intreadwrite.h"
#include "tak.h"
...
...
@@ -97,7 +96,7 @@ int ff_tak_check_crc(const uint8_t *buf, unsigned int buf_size)
return
AVERROR_INVALIDDATA
;
buf_size
-=
3
;
CRC
=
av_bswap32
(
AV_RL24
(
buf
+
buf_size
))
>>
8
;
CRC
=
AV_RB24
(
buf
+
buf_size
)
;
crc
=
av_crc
(
crc_24
,
0xCE04B7U
,
buf
,
buf_size
);
if
(
CRC
!=
crc
)
return
AVERROR_INVALIDDATA
;
...
...
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