diff options
author | Michael Johnson <ahze@FreeBSD.org> | 2005-02-28 22:16:10 +0000 |
---|---|---|
committer | Michael Johnson <ahze@FreeBSD.org> | 2005-02-28 22:16:10 +0000 |
commit | daf4cc81e4d055f630943b557402293b79680953 (patch) | |
tree | 8478681967016f816092cb7e0ded4578aa26bd4e /multimedia/gstreamer-plugins80/files/patch-ext_dirac_gstdiracdec.cc | |
parent | ffcbb5ca66c4bee1c2b113913a1208cd9f034a27 (diff) | |
download | ports-daf4cc81e4d055f630943b557402293b79680953.tar.gz ports-daf4cc81e4d055f630943b557402293b79680953.zip |
Notes
Diffstat (limited to 'multimedia/gstreamer-plugins80/files/patch-ext_dirac_gstdiracdec.cc')
-rw-r--r-- | multimedia/gstreamer-plugins80/files/patch-ext_dirac_gstdiracdec.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/multimedia/gstreamer-plugins80/files/patch-ext_dirac_gstdiracdec.cc b/multimedia/gstreamer-plugins80/files/patch-ext_dirac_gstdiracdec.cc new file mode 100644 index 000000000000..2ad0b2caf587 --- /dev/null +++ b/multimedia/gstreamer-plugins80/files/patch-ext_dirac_gstdiracdec.cc @@ -0,0 +1,22 @@ +--- ext/dirac/gstdiracdec.cc.orig Mon Feb 28 22:04:33 2005 ++++ ext/dirac/gstdiracdec.cc Mon Feb 28 22:12:15 2005 +@@ -253,13 +253,18 @@ + + case STATE_SEQUENCE:{ + guint8 *buf[3]; ++ gint fps_num, fps_denom; ++ ++ fps_num = diracdec->decoder->seq_params.frame_rate.numerator; ++ fps_denom = diracdec->decoder->seq_params.frame_rate.denominator; + + /* start-of-sequence - allocate buffer */ + if (!gst_diracdec_link (diracdec, + diracdec->decoder->seq_params.width, + diracdec->decoder->seq_params.height, ++ (gdouble) fps_num / (gdouble) fps_denom, + gst_diracdec_chroma_to_fourcc (diracdec->decoder->seq_params. +- chroma), diracdec->decoder->seq_params.frame_rate)) { ++ chroma))) { + GST_ELEMENT_ERROR (diracdec, CORE, NEGOTIATION, (NULL), + ("Failed to set caps to %dx%d @ %d fps (format=" GST_FOURCC_FORMAT + "/%d)", diracdec->decoder->seq_params.width, |