[FFmpeg-devel] [PATCH 1/2] api-flac-test: Fix stupid mistake
Ludmila Glinskih
lglinskih at gmail.com
Wed Apr 22 17:09:14 CEST 2015
Was comparing 0 bytes in memcmp
---
libavcodec/api-flac-test.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavcodec/api-flac-test.c b/libavcodec/api-flac-test.c
index 5ca8e8f..1540da9 100644
--- a/libavcodec/api-flac-test.c
+++ b/libavcodec/api-flac-test.c
@@ -117,7 +117,6 @@ static int run_test(AVCodec *enc, AVCodec *dec, AVCodecContext *enc_ctx,
AVFrame *in_frame, *out_frame;
uint8_t *raw_in = NULL, *raw_out = NULL;
int in_offset = 0, out_offset = 0;
- int frame_data_size = 0;
int result = 0;
int got_output = 0;
int i = 0;
@@ -218,7 +217,7 @@ static int run_test(AVCodec *enc, AVCodec *dec, AVCodecContext *enc_ctx,
av_free_packet(&enc_pkt);
}
- if (memcmp(raw_in, raw_out, frame_data_size * NUMBER_OF_FRAMES) != 0)
+ if (memcmp(raw_in, raw_out, out_frame->linesize[0] * NUMBER_OF_FRAMES) != 0)
{
av_log(NULL, AV_LOG_ERROR, "Output differs\n");
return 1;
--
1.9.1
More information about the ffmpeg-devel
mailing list