[FFmpeg-cvslog] libavdevice: Remove disabled code.

Diego Biurrun git at videolan.org
Sat Jul 9 02:09:49 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Tue Apr 26 14:28:45 2011 +0200| [f9853c1b9c4b4a0b8599e4dbce292586e87100cc] | committer: Diego Biurrun

libavdevice: Remove disabled code.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f9853c1b9c4b4a0b8599e4dbce292586e87100cc
---

 libavdevice/oss_audio.c |    7 -------
 libavdevice/x11grab.c   |   15 ---------------
 2 files changed, 0 insertions(+), 22 deletions(-)

diff --git a/libavdevice/oss_audio.c b/libavdevice/oss_audio.c
index fcbe26b..6e25288 100644
--- a/libavdevice/oss_audio.c
+++ b/libavdevice/oss_audio.c
@@ -80,13 +80,6 @@ static int audio_open(AVFormatContext *s1, int is_output, const char *audio_devi
         fcntl(audio_fd, F_SETFL, O_NONBLOCK);
 
     s->frame_size = AUDIO_BLOCK_SIZE;
-#if 0
-    tmp = (NB_FRAGMENTS << 16) | FRAGMENT_BITS;
-    err = ioctl(audio_fd, SNDCTL_DSP_SETFRAGMENT, &tmp);
-    if (err < 0) {
-        perror("SNDCTL_DSP_SETFRAGMENT");
-    }
-#endif
 
     /* select format : favour native format */
     err = ioctl(audio_fd, SNDCTL_DSP_GETFMTS, &tmp);
diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c
index 6e77a5c..62cb4f1 100644
--- a/libavdevice/x11grab.c
+++ b/libavdevice/x11grab.c
@@ -217,21 +217,6 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
         }
         break;
     case 32:
-#if 0
-        GetColorInfo (image, &c_info);
-        if ( c_info.alpha_mask == 0xff000000 && image->green_mask == 0x0000ff00) {
-            /* byte order is relevant here, not endianness
-             * endianness is handled by avcodec, but atm no such thing
-             * as having ABGR, instead of ARGB in a word. Since we
-             * need this for Solaris/SPARC, but need to do the conversion
-             * for every frame we do it outside of this loop, cf. below
-             * this matches both ARGB32 and ABGR32 */
-            input_pixfmt = PIX_FMT_ARGB32;
-        }  else {
-            av_log(s1, AV_LOG_ERROR,"image depth %i not supported ... aborting\n", image->bits_per_pixel);
-            return AVERROR(EIO);
-        }
-#endif
         input_pixfmt = PIX_FMT_RGB32;
         break;
     default:



More information about the ffmpeg-cvslog mailing list