libavformat/asfdec: Use predefined constants
Signed-off-by: softworkz <softworkz@hotmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
3ee4502753
commit
c8cdf641c7
@ -205,13 +205,13 @@ static int asf_probe(const AVProbeData *pd)
|
|||||||
static int get_value(AVIOContext *pb, int type, int type2_size)
|
static int get_value(AVIOContext *pb, int type, int type2_size)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 2:
|
case ASF_BOOL:
|
||||||
return (type2_size == 32) ? avio_rl32(pb) : avio_rl16(pb);
|
return (type2_size == 32) ? avio_rl32(pb) : avio_rl16(pb);
|
||||||
case 3:
|
case ASF_DWORD:
|
||||||
return avio_rl32(pb);
|
return avio_rl32(pb);
|
||||||
case 4:
|
case ASF_QWORD:
|
||||||
return avio_rl64(pb);
|
return avio_rl64(pb);
|
||||||
case 5:
|
case ASF_WORD:
|
||||||
return avio_rl16(pb);
|
return avio_rl16(pb);
|
||||||
default:
|
default:
|
||||||
return INT_MIN;
|
return INT_MIN;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user