summaryrefslogtreecommitdiff
path: root/libavformat/mxfdec.c
Commit message (Collapse)AuthorAge
* lavf/mxfdec: Fix Canopus essence element size.Carl Eugen Hoyos2016-03-14
|
* lavf/mxfdec: Support Canopus codecs.Carl Eugen Hoyos2016-03-10
| | | | Fixes ticket #5316.
* lavf/mxfdec: fix seeking before the first keyframeMarton Balint2015-12-08
| | | | | | | Regression since 53f2ef2c4afb1d49a679dea9163cb0e4671f3117. Fixes ticket #5017. Signed-off-by: Marton Balint <cus@passwd.hu>
* Remove Redundant Entry of MPEG2 Video DescAnshul Maheshwari2015-12-07
| | | | | Signed-off-by: Anshul Maheshwari <er.anshul.maheshwari@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/mxfdec: Set width to actual coded_width for AVCI50.Carl Eugen Hoyos2015-11-29
| | | | | Fixes ticket #5029. Reported and analyzed by videolan trac user HenkDemper in vlc ticket #15762.
* mxfdec: check edit_rate also for physical_trackAndreas Cadhalpun2015-11-18
| | | | | | | | Previously only the edit_rate of material_track was checked. If it's negative, it causes assertion failures in av_rescale_rnd. Reviewed-by: Tim Nicholson <nichot20-at-yahoo.com@ffmpeg.org> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* libavformat/mxfdec.c: Report dark metadata keys only when they match no ↵Alexis Ballier2015-10-22
| | | | | | | parser at all, not everytime they fail to match one. Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavformat/mxfdec.c: cosmetics: Add missing space after '?' in log message.Alexis Ballier2015-10-22
| | | | | Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/mxfdec: Support more codecs in mxf_picture_essence_container_uls[].Arnaud Bienner2015-09-05
| | | | Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
* lavc/mxfdec: Support more mxf files with codec_ul.Carl Eugen Hoyos2015-09-04
| | | | Fixes decoding for the sample from ticket #4820.
* mxfdec: set AVFMT_SEEK_TO_PTS demuxer flagMarton Balint2015-08-14
| | | | | | Since 53f2ef2c4afb1d49a679dea9163cb0e4671f3117 seeking is done using PTS. Signed-off-by: Marton Balint <cus@passwd.hu>
* lavf/mxfdec: support segmented frame layout as separate fields layoutMatthieu Bouron2015-08-04
| | | | | | | | | According to S377M, segmented frame layout is identical to separate field layout except that the two fields are taken from a single scan of the incoming image, ie: they are coincident in time. Thus the resulting frame is progressive. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Cosmetics: Reindent after last commit.Carl Eugen Hoyos2015-07-22
|
* lavf/mxfdec: Set codec_tag AVup for Avid 1:1 input.Carl Eugen Hoyos2015-07-22
|
* mxfdec: calculate the index in display orderMarton Balint2015-07-16
| | | | | | | This should fix seeking for open GOP files as well. Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se> Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mxfdec: Change version byte for JPEG2000 to match mxf.c and RP224v12Michael Niedermayer2015-06-16
| | | | | | | | This should make no difference as the byte is ignored Found-by: tim nicholson <nichot20@yahoo.com> Reviewed-by: tim nicholson <nichot20@yahoo.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/mxfdec: Detect jpeg2000 through codec_ul tooMichael Niedermayer2015-06-12
| | | | | | | Fixes Ticket2345 Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/mxfdec: return error instead of segfaulting if there are no streamsMichael Niedermayer2015-06-02
| | | | | | Fixes segfault from ticket 4350 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '1a3eb042c704dea190c644def5b32c9cee8832b8'Michael Niedermayer2015-04-20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1a3eb042c704dea190c644def5b32c9cee8832b8': Replace av_dlog with normal av_log at trace level Conflicts: ffplay.c libavdevice/fbdev_dec.c libavfilter/avfilter.c libavfilter/internal.h libavfilter/setpts.c libavfilter/src_movie.c libavfilter/vf_crop.c libavfilter/vf_drawtext.c libavfilter/vf_fieldorder.c libavformat/assdec.c libavformat/avidec.c libavformat/flvdec.c libavformat/http.c libavformat/ipmovie.c libavformat/isom.c libavformat/mov.c libavformat/mpegenc.c libavformat/mpegts.c libavformat/mpegtsenc.c libavformat/mux.c libavformat/mxfdec.c libavformat/nsvdec.c libavformat/oggdec.c libavformat/r3d.c libavformat/rtspdec.c libavformat/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Replace av_dlog with normal av_log at trace levelVittorio Giovara2015-04-19
| | | | | | | | This applies to every library where performance is not critical.
* | libavformat/mxfdec: fix MXFPackage->comment_refs memory leakMark Reid2015-03-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavformat/mxfdec: export user comments metadataMark Reid2015-03-14
| | | | | | | | | | Previous-revision-reviewed-by: Tomas Härdin <tomas.hardin@codemill.se> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '6448f15af02f2c3cf0df8cb8237957e426041f2d'Michael Niedermayer2015-03-08
|\| | | | | | | | | | | | | * commit '6448f15af02f2c3cf0df8cb8237957e426041f2d': mxfdec: Fix the error handling for when strftime fails Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mxfdec: Fix the error handling for when strftime failsMartin Storsjö2015-03-08
| | | | | | | | | | | | The str variable is a char ** here. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avformat/mxfdec: Detect XYZ pixel format for digital cinema filesVilius Grigaliūnas2015-03-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While the native jpeg2000 decoder can determine pixel format correctly from the codestream, libopenjpeg wrapper cannot. To make sure that the output is correct when using libopenjpeg to decode digital cinema files, we do detection from the metadata included in the MXF wrapper. If the container has "JPEG 2000 Coding Parameters" metadata element with Rsiz value set to one of digital cinema profiles, we can safely assume that the given input file is DCI compliant, therefore the pixel format should be XYZ. Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavformat/mxfdec: refactor reading strong ref arrayMark Reid2015-03-04
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'daf8cf358a098a903d59adb6c0d0cc3262a8c93e'Michael Niedermayer2015-02-14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'daf8cf358a098a903d59adb6c0d0cc3262a8c93e': avformat: Don't anonymously typedef structs Conflicts: libavformat/adtsenc.c libavformat/aiffenc.c libavformat/avidec.c libavformat/gif.c libavformat/iff.c libavformat/img2dec.c libavformat/jvdec.c libavformat/matroskadec.c libavformat/udp.c libavformat/wtvdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avformat: Don't anonymously typedef structsDiego Biurrun2015-02-14
| |
| * mxfdec: reduce loop bound in mxf_read_pixel_layout()Tomas Härdin2014-10-27
| | | | | | | | | | | | Makes coverity less confused and code more readable. Bug-Id: CID 732262
* | avformat/mxfdec: Fix cleanup in mxf_free_metadataset()Carl Eugen Hoyos2015-01-28
| | | | | | | | | | | | | | Fixes Ticket4256 Found-by: tholin Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavformat/mxfdec.c: support demuxing opatom audio without indexMark Reid2015-01-18
| | | | | | | | | | Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavformat/mxfdec.c: export the full UMID as metadataMark Reid2015-01-13
| | | | | | | | | | | | Previous version reviewed-by: tim nicholson Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavformat/mxfdec.c: read project_name metadataMark Reid2015-01-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MXF files generated by Media Composer or LibMXF can contain a project name property in the Preface. Lots of existing samples have them. http://samples.ffmpeg.org/MXF/issue2160/PW0805A0V01.4C5B5636.EFA330.mxf project_name : DNX145 PW Test http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket3450/WriteAvidMXFgenerated/5502_0010_v1.mxf project_name : Rombus http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket3100/1sec_mxf_test_Video5270C795.mxf project_name : NVB_DOOD Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf/mxfdec: Fix memleaks reading corrupt files.Carl Eugen Hoyos2014-12-15
| | | | | | | | | | | | Fixes ticket #4173. Reviewed-by: Tomas Härdin
* | lavf/mxfdec: Factorize mxf_read_close().Carl Eugen Hoyos2014-12-15
| | | | | | | | This will allow to fix leaks in a subsequent commit.
* | libavformat/mxfdec.c refactor resolving MultiDescriptor and remove essence ↵Mark Reid2014-12-04
| | | | | | | | | | | | | | | | | | | | group hack I think this is a better way to deal with single frame essence data then my previous way. Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/mxfdec: Reset structural_components_count when allocation failsMichael Niedermayer2014-11-30
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavformat/mxfdec.c: initial support for EssenceGroupsMark Reid2014-11-30
| | | | | | | | | | Previous version reviewed-by: Tomas Härdin <tomas.hardin@codemill.se> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/mxfdec: dont ask for samples with field dominance 0 anymoreMichael Niedermayer2014-11-26
| | | | | | | | | | | | | | Based on discussion and patch from "[FFmpeg-devel] [PATCH]Do not ask for mxf samples with unknown field dominance" Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mxfdec: minor simplification.Reimar Döffinger2014-11-22
| | | | | | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | libavformat/mxfdec.c: export source package uids and names as metadataMark Reid2014-11-22
| | | | | | | | | | | | | | | | Changes since v1: * renamed mxf_read_source_package -> mxf_read_package v1 reviewed-by: Tomas Härdin <tomas.hardin@codemill.se> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Read (display) aspect ratio from mxf files.Carl Eugen Hoyos2014-11-17
| | | | | | | | Fixes ticket #4107.
* | libavformat/mxfdec.c: refactored resolving timecode componentMark Reid2014-11-15
| | | | | | | | | | Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/mxfdec: fix null pointer dereferenceMichael Niedermayer2014-10-29
| | | | | | | | | | | | Fixes: signal_sigsegv_b5b3d4_2_001.mxf Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mxfdec: Tighten RIP length bounds in mxf_read_random_index_pack()Tomas Härdin2014-10-28
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mxfdec: Merge last_partition and footer_partitionTomas Härdin2014-10-28
| | | | | | | | | | | | | | | | FooterPartition offset specified in RIP takes precedence over any value written in PartitionPacks. This fixes the same issue f06f6da tries to fix without introducing an extra variable. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Revert "avformat/mxfdec: detect loops during header parsing"Tomas Härdin2014-10-28
| | | | | | | | | | | | This reverts commit 1c010fd035c1a14dc73827b84f21f593e969a5d6. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mxfdec: Parse PreviousPartition in mxf_seek_to_previous_partition()Tomas Härdin2014-10-28
| | | | | | | | | | | | | | | | | | | | Without this patch the demuxer can get stuck in a loop if PreviousPartition points somewhere where there's no PartitionPack, or if klv_read_packet() syncs back up to the current partition. This should fix Ticket3278 properly and unbreak Ticket4040. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mxfdec: Break out parts of mxf_read_header() into separate functionsTomas Härdin2014-10-28
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '9dcf2397219ca796f0fafce2a703770d6fd09920'Michael Niedermayer2014-10-26
|\| | | | | | | | | | | | | | | | | | | * commit '9dcf2397219ca796f0fafce2a703770d6fd09920': lavf: Check the return value of strftime Conflicts: libavformat/wtvdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>