Author: ramiro
Date: Mon Aug 25 02:18:47 2008
New Revision: 3605

Log:
Do not try to analyze frame if there is no data left to analyze.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c        (original)
+++ mlp/mlpenc.c        Mon Aug 25 02:18:47 2008
@@ -1873,6 +1873,9 @@ input_and_return:
         ctx->major_frame_size = ctx->next_major_frame_size;
         ctx->next_major_frame_size = 0;
 
+        if (!ctx->major_frame_size)
+            goto no_data_left;
+
         ctx->starting_frame_index = 0;
         ctx->number_of_frames = MAJOR_HEADER_INTERVAL;
         ctx->number_of_samples = ctx->major_frame_size;
@@ -1886,6 +1889,8 @@ input_and_return:
         analyze_sample_buffer(ctx);
     }
 
+no_data_left:
+
     return bytes_written;
 }
 
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to