[FFmpeg-cvslog] libavformat/asfdec: Use predefined constants
Soft Works
git at videolan.org
Thu Sep 30 15:02:45 EEST 2021
ffmpeg | branch: master | Soft Works <softworkz at hotmail.com> | Thu Sep 30 02:58:56 2021 +0000| [c8cdf641c73899eceb785d95da95a827aedff713] | committer: Michael Niedermayer
libavformat/asfdec: Use predefined constants
Signed-off-by: softworkz <softworkz at hotmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c8cdf641c73899eceb785d95da95a827aedff713
---
libavformat/asfdec_f.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c
index 72ba8b32a0..95063cbc14 100644
--- a/libavformat/asfdec_f.c
+++ b/libavformat/asfdec_f.c
@@ -205,13 +205,13 @@ static int asf_probe(const AVProbeData *pd)
static int get_value(AVIOContext *pb, int type, int type2_size)
{
switch (type) {
- case 2:
+ case ASF_BOOL:
return (type2_size == 32) ? avio_rl32(pb) : avio_rl16(pb);
- case 3:
+ case ASF_DWORD:
return avio_rl32(pb);
- case 4:
+ case ASF_QWORD:
return avio_rl64(pb);
- case 5:
+ case ASF_WORD:
return avio_rl16(pb);
default:
return INT_MIN;
More information about the ffmpeg-cvslog
mailing list