diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index 5c36aa55d64940a2cbaa4c28018d96db4bdb6976..69660eda78d230d2b907b5f327651a23629fba2c 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -503,7 +503,6 @@ static int rm_assemble_video_frame(AVFormatContext *s, RMContext *rm, AVPacket *
     }
     if(type == 2){
         len = FFMIN(len, pos);
-        pos = len2 - pos;
     }
 
     if(++rm->cur_slice > rm->slices)