]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_refs.c
aarch64: vp9itxfm: Make the larger core transforms standalone functions
[ffmpeg] / libavcodec / h264_refs.c
index 97bf588b512c1dddf0ffce48777cdacc62bdca2f..ad296753c3bd9f236037095f8b785d2c11d506dc 100644 (file)
@@ -571,8 +571,7 @@ void ff_h264_remove_all_refs(H264Context *h)
 
     if (h->short_ref_count && !h->last_pic_for_ec.f->data[0]) {
         ff_h264_unref_picture(h, &h->last_pic_for_ec);
-        if (h->short_ref[0]->f->buf[0])
-            ff_h264_ref_picture(h, &h->last_pic_for_ec, h->short_ref[0]);
+        ff_h264_ref_picture(h, &h->last_pic_for_ec, h->short_ref[0]);
     }
 
     for (i = 0; i < h->short_ref_count; i++) {