[FFmpeg-cvslog] frwu: use MKTAG to check marker instead of AV_RL32

Paul B Mahol git at videolan.org
Tue Mar 13 02:22:17 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Mar 12 18:11:32 2012 +0000| [05d089a80bf01de696b918c3491d1127eba7cbc0] | committer: Ronald S. Bultje

frwu: use MKTAG to check marker instead of AV_RL32

Using intreadwrite.h for this is overkill.

Signed-off-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=05d089a80bf01de696b918c3491d1127eba7cbc0
---

 libavcodec/frwu.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libavcodec/frwu.c b/libavcodec/frwu.c
index c21c19a..305d0cd 100644
--- a/libavcodec/frwu.c
+++ b/libavcodec/frwu.c
@@ -22,7 +22,6 @@
 
 #include "avcodec.h"
 #include "bytestream.h"
-#include "libavutil/intreadwrite.h"
 
 static av_cold int decode_init(AVCodecContext *avctx)
 {
@@ -54,7 +53,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
         av_log(avctx, AV_LOG_ERROR, "Packet is too small.\n");
         return AVERROR_INVALIDDATA;
     }
-    if (bytestream_get_le32(&buf) != AV_RL32("FRW1")) {
+    if (bytestream_get_le32(&buf) != MKTAG('F', 'R', 'W', '1')) {
         av_log(avctx, AV_LOG_ERROR, "incorrect marker\n");
         return AVERROR_INVALIDDATA;
     }



More information about the ffmpeg-cvslog mailing list