From 338004bcfc224727d1477d303aa1521bf3ac21be Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 5 Jul 2014 16:57:56 +0200 Subject: dvd, bluray, cdda: add demux_disc containing all related hacks DVD and Bluray (and to some extent cdda) require awful hacks all over the codebase to make them work. The main reason is that they act like container, but are entirely implemented on the stream layer. The raw mpeg data resulting from these streams must be "extended" with the container-like metadata transported via STREAM_CTRLs. The result were hacks all over demux.c and some higher-level parts. Add a "disc" pseudo-demuxer, and move all these hacks and special-cases to it. --- video/decode/dec_video.c | 3 --- video/decode/dec_video.h | 1 - 2 files changed, 4 deletions(-) (limited to 'video') diff --git a/video/decode/dec_video.c b/video/decode/dec_video.c index 807ce2013c..b7002800fb 100644 --- a/video/decode/dec_video.c +++ b/video/decode/dec_video.c @@ -408,9 +408,6 @@ int video_reconfig_filters(struct dec_video *d_video, } float force_aspect = opts->movie_aspect; - if (force_aspect > 0.0 && d_video->stream_aspect != 0.0) - force_aspect = d_video->stream_aspect; - if (force_aspect >= 0.0) vf_set_dar(&p.d_w, &p.d_h, p.w, p.h, force_aspect); diff --git a/video/decode/dec_video.h b/video/decode/dec_video.h index 9541cb3ca6..c9513ac3cd 100644 --- a/video/decode/dec_video.h +++ b/video/decode/dec_video.h @@ -72,7 +72,6 @@ struct dec_video { // Final PTS of previously decoded image double decoded_pts; - float stream_aspect; // aspect ratio in media headers (DVD IFO files) int bitrate; // compressed bits/sec float fps; // FPS from demuxer or from user override float initial_decoder_aspect; -- cgit v1.2.3