[FFmpeg-devel] [PATCH]lavf/rtpenc_jpeg: Error out for non-standard Huffman tables
Michael Niedermayer
michaelni at gmx.at
Thu Jul 9 15:34:07 CEST 2015
On Thu, Jul 09, 2015 at 01:23:58PM +0200, Carl Eugen Hoyos wrote:
> Hi!
>
> RFC 2435 requires standard Huffman tables when sending (m)jpeg over rtp.
> Related to ticket #3823.
>
> Please comment, Carl Eugen
> rtpenc_jpeg.c | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
> f72f54ec4c4d9fb7f8e61dbb4ce48cd5a492c05e patchrtpjpghuffman.diff
> diff --git a/libavformat/rtpenc_jpeg.c b/libavformat/rtpenc_jpeg.c
> index 7ee26c4..e9d09e9 100644
> --- a/libavformat/rtpenc_jpeg.c
> +++ b/libavformat/rtpenc_jpeg.c
> @@ -21,6 +21,7 @@
>
> #include "libavcodec/bytestream.h"
> #include "libavcodec/mjpeg.h"
> +#include "libavcodec/jpegtables.h"
> #include "libavutil/intreadwrite.h"
> #include "rtpenc.h"
>
> @@ -81,6 +82,26 @@ void ff_rtp_send_jpeg(AVFormatContext *s1, const uint8_t *buf, int size)
> "Only 1x1 chroma blocks are supported. Aborted!\n");
[...]
> + "Only standard Huffman tables are supported\n");
I think the error messages should be changed to say that RFC... doesnt
allow stuff not that its not supported implying it could be supported
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150709/304f7ae1/attachment.sig>
More information about the ffmpeg-devel
mailing list