Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-07-13 17:34:39 +0300
committerMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-07-13 17:34:54 +0300
commit3c058f570128dcfa3a68f0860e2be7f098e8d6e1 (patch)
tree72f1ca0c89d5169ff4123b1e3af60f35b99c8bfb /libavformat/isom.h
parentf2b08a07028ebf6511929ed4f5f55a4479d4f825 (diff)
parent76729970049fe95659346503f7401a5d869f9959 (diff)
Merge commit '76729970049fe95659346503f7401a5d869f9959'
* commit '76729970049fe95659346503f7401a5d869f9959': mov: Implement support for multiple sample description tables Notes: * The sc->stsc_data[index].id checks have been moved from the mov_read_stsc to mov_read_packet before the value is used in mov_change_extradata to not break playback of samples with broken stsc entries (see sample of ticket #1918). * sc->stsc_index is now checked against sc->stsc_count - 1 before it is incremented so it remains lesser than sc->stsc_count. Fixes a crash with: ./ffmpeg -i matrixbench_mpeg2.mpg -t 1 -frag_duration 200k test.mov ./ffprobe -show_packets test.mov Merged-by: Matthieu Bouron <matthieu.bouron@stupeflix.com>
Diffstat (limited to 'libavformat/isom.h')
-rw-r--r--libavformat/isom.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/isom.h b/libavformat/isom.h
index 726f350929..df6c15a9bf 100644
--- a/libavformat/isom.h
+++ b/libavformat/isom.h
@@ -128,6 +128,8 @@ typedef struct MOVStreamContext {
MOVStts *ctts_data;
unsigned int stsc_count;
MOVStsc *stsc_data;
+ int stsc_index;
+ int stsc_sample;
unsigned int stps_count;
unsigned *stps_data; ///< partial sync sample for mpeg-2 open gop
MOVElst *elst_data;
@@ -169,6 +171,12 @@ typedef struct MOVStreamContext {
int nb_frames_for_fps;
int64_t duration_for_fps;
+ /** extradata array (and size) for multiple stsd */
+ uint8_t **extradata;
+ int *extradata_size;
+ int last_stsd_index;
+ int stsd_count;
+
int32_t *display_matrix;
uint32_t format;