Opened 4 years ago

Closed 4 years ago

#8412 closed defect (fixed)

JPEG encoder produces extra RST marker

Reported by: Martin Pulec Owned by:
Priority: minor Component: avcodec
Version: git-master Keywords: mjpeg
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

FFMPEG MJPEG encoder produces extra RST marker at the end of the stream.

Steps to reproduce:

% ffmpeg -f lavfi -i color=c=black:s=1920x1080 -thread_type slice -frames:v 1 test.jpg
fmpeg version N-95941-g637742b45d Copyright (c) 2000-2019 the FFmpeg developers 
...
% xxd -s -4 test.jpg
000082c4: ffd3 ffd9                                ....

0xFFD3 is a RST3 marker. If I understand it correctly, according to ITU-T T.81 (figure E.3), there should not be a trailing restart marker after that there is no data.

Change History (3)

comment:1 by Carl Eugen Hoyos, 4 years ago

Component: undeterminedavcodec
Keywords: mjpeg added

comment:3 by Carl Eugen Hoyos, 4 years ago

Resolution: fixed
Status: newclosed

Should be fixed in f2e78644962fa93edb0b1cf92397f99e772d92d6, thank you for the report!

Note: See TracTickets for help on using tickets.