aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-12-04 11:25:53 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-12-04 11:25:53 +0000
commitdc172cc13bf9030c98a9b8b4e28c6052c848e469 (patch)
tree630c7e75b02c1a3bf9555101abb9b5b52b7bccd2
parent1e491e29c27cf6a6925666e4f4eac41b65e263d7 (diff)
downloadffmpeg-dc172cc13bf9030c98a9b8b4e28c6052c848e469.tar.gz
use spatial error concealment if we dont have a previous frame
Originally committed as revision 1303 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/error_resilience.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c
index 584bac865e..3cb8d40bcf 100644
--- a/libavcodec/error_resilience.c
+++ b/libavcodec/error_resilience.c
@@ -528,6 +528,8 @@ score_sum+= best_score;
static int is_intra_more_likely(MpegEncContext *s){
int is_intra_likely, i, j, undamaged_count, skip_amount, mb_x, mb_y;
+
+ if(s->last_picture.data[0]==NULL) return 1; //no previous frame available -> use spatial prediction
undamaged_count=0;
for(i=0; i<s->mb_num; i++){