summaryrefslogtreecommitdiff
path: root/libavcodec/dv.c
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2006-03-06 09:54:09 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2006-03-06 09:54:09 +0000
commit56419683b2e9f670d4ee231a92e13958f8134f37 (patch)
tree05b1cda5c018541b871af0ec602946fd4f8b4325 /libavcodec/dv.c
parent0b297700b787a68323629e836b15852c3331b4a0 (diff)
I still don't think this should be here. Note: without this code DV encoder
will accept incorrect pix_fmt's and such, but decoder will work much better with containers not setting the same attributes. It seems like there will be a generic mechanism for checking such constraints, but if not I can always resurrect this check for *encoder* only. Originally committed as revision 5114 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r--libavcodec/dv.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index 552ca51b8a..c39d70c542 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -241,16 +241,6 @@ static int dvvideo_init(AVCodecContext *avctx)
/* XXX: do it only for constant case */
dv_build_unquantize_tables(s, dsp.idct_permutation);
- /* FIXME: I really don't think this should be here */
- s->sys = dv_codec_profile(avctx);
- if(!s->sys) {
- av_log(avctx, AV_LOG_ERROR, "Cannot determine type of DV output stream\n");
- return -EINVAL;
- }
- avctx->pix_fmt = s->sys->pix_fmt;
- avctx->bit_rate = av_rescale(s->sys->frame_size * 8,
- s->sys->frame_rate,
- s->sys->frame_rate_base);
avctx->coded_frame = &s->picture;
s->avctx= avctx;