Re: [FFmpeg-devel] [PATCH] lavf: Add DICOM demuxer, lavc: Add DICOM decoder

2019-08-21 Thread Shivam
On 8/21/19 7:27 PM, Moritz Barsnick wrote: On Tue, Aug 20, 2019 at 20:53:43 +0530, Shivam wrote: Please review, (Untested, just visual code inspection.) +- DICOM decoder and demxer Typo -> demuxer. Also, when splitting the commits, also split the changes to the Changelog. (Can still be one

Re: [FFmpeg-devel] [PATCH] lavf: Add DICOM demuxer, lavc: Add DICOM decoder

2019-08-21 Thread Moritz Barsnick
On Thu, Aug 22, 2019 at 00:28:28 +0530, Shivam wrote: > >> + dicom->height = *(uint16_t *)bytes; > > does this work on big endian ? > > maybe you where looking for AV_RL16() > > Big endian DICOM files are retired and no longer supported by the standard. What Michael means: What happens if you use

Re: [FFmpeg-devel] [PATCH] lavf: Add DICOM demuxer, lavc: Add DICOM decoder

2019-08-21 Thread Shivam
Forwarded Message Subject: Re: [FFmpeg-devel] [PATCH] lavf: Add DICOM demuxer, lavc: Add DICOM decoder Date: Thu, 22 Aug 2019 00:27:55 +0530 From: Shivam To: Michael Niedermayer On 8/21/19 2:00 AM, Michael Niedermayer wrote: On Tue, Aug 20, 2019 at 08:53

Re: [FFmpeg-devel] [PATCH] lavf: Add DICOM demuxer, lavc: Add DICOM decoder

2019-08-21 Thread Moritz Barsnick
On Tue, Aug 20, 2019 at 20:53:43 +0530, Shivam wrote: One more. Some more nitpicking around this. Please use valgrind with all your samples and some demuxing and decoding command lines. > +static int dicom_read_packet(AVFormatContext *s, AVPacket *pkt) > +{ > +DICOMContext *dicom = s->priv_da

Re: [FFmpeg-devel] [PATCH] lavf: Add DICOM demuxer, lavc: Add DICOM decoder

2019-08-21 Thread Moritz Barsnick
On Tue, Aug 20, 2019 at 20:53:43 +0530, Shivam wrote: > I have also uploaded DICOM samples here. > https://1drv.ms/u/s!AosJ9_SrP4Tsh2WoPfQAI8cSsqUs?e=ZMd5fR I found something else, with valgrind: > +static int read_implicit_seq_item(AVFormatContext *s, DataElement *de) > +{ > +int ret, f = -2

Re: [FFmpeg-devel] [PATCH] lavf: Add DICOM demuxer, lavc: Add DICOM decoder

2019-08-21 Thread Moritz Barsnick
On Tue, Aug 20, 2019 at 20:53:43 +0530, Shivam wrote: > Please review, (Untested, just visual code inspection.) > +- DICOM decoder and demxer Typo -> demuxer. Also, when splitting the commits, also split the changes to the Changelog. (Can still be one line eventually.) > +.props = A

Re: [FFmpeg-devel] [PATCH] lavf: Add DICOM demuxer, lavc: Add DICOM decoder

2019-08-20 Thread Michael Niedermayer
On Tue, Aug 20, 2019 at 08:53:43PM +0530, Shivam wrote: > Sorry, for my previous mail, i forgot to attach the patch. > > The patch contains support for Dicom files. The below features are supported > yet:- > Uncompressed DICOM files using any of the Implicit and Explicit VR formats. > Multiframe f

[FFmpeg-devel] [PATCH] lavf: Add DICOM demuxer, lavc: Add DICOM decoder

2019-08-20 Thread Shivam
Sorry, for my previous mail, i forgot to attach the patch. The patch contains support for Dicom files. The below features are supported yet:- Uncompressed DICOM files using any of the Implicit and Explicit VR formats. Multiframe files are also supported. To extract the metadata or info about th