projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f579d24
)
shorten: trivial simplification of signature check
author
Måns Rullgård
<mans@mansr.com>
Sat, 31 Jan 2009 22:30:49 +0000
(22:30 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Sat, 31 Jan 2009 22:30:49 +0000
(22:30 +0000)
Originally committed as revision 16908 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/shorten.c
patch
|
blob
|
history
diff --git
a/libavcodec/shorten.c
b/libavcodec/shorten.c
index
eda91c2
..
89b9ff5
100644
(file)
--- a/
libavcodec/shorten.c
+++ b/
libavcodec/shorten.c
@@
-305,7
+305,7
@@
static int shorten_decode_frame(AVCodecContext *avctx,
{
int maxnlpc = 0;
/* shorten signature */
- if (get_bits_long(&s->gb, 32) !=
bswap_32(AV_RL32("ajkg")
)) {
+ if (get_bits_long(&s->gb, 32) !=
AV_RB32("ajkg"
)) {
av_log(s->avctx, AV_LOG_ERROR, "missing shorten magic 'ajkg'\n");
return -1;
}