Yes.
The easiest way is to write a byte stream copier that understands the file format of the JPEG stream and in response to detecting the RSTn marker, omitting it at the output. In addition, the JPEG header must be modified to remove the DRI marker (determine the restart period).
, , . RSTn MOST .