File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -859,6 +859,22 @@ void ff_er_frame_end(ERContext *s)
859
859
(s -> avctx -> skip_top + s -> avctx -> skip_bottom )) {
860
860
return ;
861
861
}
862
+ if (s -> last_pic ) {
863
+ if (s -> last_pic -> f .width != s -> cur_pic -> f .width ||
864
+ s -> last_pic -> f .height != s -> cur_pic -> f .height ||
865
+ s -> last_pic -> f .format != s -> cur_pic -> f .format ) {
866
+ av_log (s -> avctx , AV_LOG_WARNING , "Cannot use previous picture in error concealment\n" );
867
+ s -> last_pic = NULL ;
868
+ }
869
+ }
870
+ if (s -> next_pic ) {
871
+ if (s -> next_pic -> f .width != s -> cur_pic -> f .width ||
872
+ s -> next_pic -> f .height != s -> cur_pic -> f .height ||
873
+ s -> next_pic -> f .format != s -> cur_pic -> f .format ) {
874
+ av_log (s -> avctx , AV_LOG_WARNING , "Cannot use next picture in error concealment\n" );
875
+ s -> next_pic = NULL ;
876
+ }
877
+ }
862
878
863
879
if (s -> cur_pic -> f .motion_val [0 ] == NULL ) {
864
880
av_log (s -> avctx , AV_LOG_ERROR , "Warning MVs not available\n" );
You can’t perform that action at this time.
0 commit comments