diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index eb9a7d0c97a8f34e1fb16e6611f4588a62c9a947..1ba0e959241e2c22c43b72ae68af49824a03f37b 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1561,8 +1561,6 @@ again:
             case NAL_DPB:
             case NAL_DPC:
                 avpriv_request_sample(avctx, "data partitioning");
-                ret = AVERROR(ENOSYS);
-                goto end;
                 break;
             case NAL_SEI:
                 init_get_bits(&h->gb, ptr, bit_length);