comparison fmt-conversion.c @ 32908:c93ae40fb504

Fix copy-and-paste error: Should be AV_SAMPLE_FMT_NONE instead of PIX_FMT_NONE.
author reimar
date Wed, 02 Mar 2011 07:41:47 +0000
parents fd60388d370a
children e1ee4895e500
comparison
equal deleted inserted replaced
32907:44f4ead8fdb0 32908:c93ae40fb504
144 enum AVSampleFormat sample_fmt; 144 enum AVSampleFormat sample_fmt;
145 for (i = 0; samplefmt_conversion_map[i].fmt; i++) 145 for (i = 0; samplefmt_conversion_map[i].fmt; i++)
146 if (samplefmt_conversion_map[i].fmt == fmt) 146 if (samplefmt_conversion_map[i].fmt == fmt)
147 break; 147 break;
148 sample_fmt = samplefmt_conversion_map[i].sample_fmt; 148 sample_fmt = samplefmt_conversion_map[i].sample_fmt;
149 if (sample_fmt == PIX_FMT_NONE) 149 if (sample_fmt == AV_SAMPLE_FMT_NONE)
150 mp_msg(MSGT_GLOBAL, MSGL_ERR, "Unsupported format %s\n", 150 mp_msg(MSGT_GLOBAL, MSGL_ERR, "Unsupported format %s\n",
151 af_fmt2str(fmt, str, sizeof(str))); 151 af_fmt2str(fmt, str, sizeof(str)));
152 return sample_fmt; 152 return sample_fmt;
153 } 153 }
154 154