History

lav*,tests: remove several register_all calls

avdevice_register_all() is still required to register devices into lavf (this is required due to lavd being somewhat of a hack).

Josh de Kock committed 8 years ago

Commit 89029bd1 parent d1221f328 files · +0 −58Browse files

Showing the changes to tests/api (5 of 28 files). Show all

Unified · Split

5 files
  1. tests/api/api-band-test.c +0 −2
  2. tests/api/api-codec-param-test.c +0 −2
  3. tests/api/api-flac-test.c +0 −2
  4. tests/api/api-h264-test.c +0 −2
  5. tests/api/api-seek-test.c +0 −2
tests/api/api-band-test.c+0−2
@@ -214,8 +214,6 @@ int main(int argc, char **argv) · 213 unmodified lines
214 return 1;214 return 1;
215 }215 }
216 216
217 av_register_all();
218
219 if (video_decode(argv[1]) != 0)217 if (video_decode(argv[1]) != 0)
220 return 1;218 return 1;
221 219
tests/api/api-codec-param-test.c+0−2
@@ -231,8 +231,6 @@ int main(int argc, char* argv[]) · 230 unmodified lines
231 AVFormatContext *fmt_ctx = NULL;231 AVFormatContext *fmt_ctx = NULL;
232 AVFormatContext *fmt_ctx_no_decode = NULL;232 AVFormatContext *fmt_ctx_no_decode = NULL;
233 233
234 av_register_all();
235
236 if (argc < 2) {234 if (argc < 2) {
237 av_log(NULL, AV_LOG_ERROR, "Usage: %s <input>\n", argv[0]);235 av_log(NULL, AV_LOG_ERROR, "Usage: %s <input>\n", argv[0]);
238 return -1;236 return -1;
tests/api/api-flac-test.c+0−2
@@ -245,8 +245,6 @@ int main(void) · 244 unmodified lines
245 int sample_rates[] = {8000, 44100, 48000, 192000};245 int sample_rates[] = {8000, 44100, 48000, 192000};
246 int cl, sr;246 int cl, sr;
247 247
248 avcodec_register_all();
249
250 enc = avcodec_find_encoder(AV_CODEC_ID_FLAC);248 enc = avcodec_find_encoder(AV_CODEC_ID_FLAC);
251 if (!enc) {249 if (!enc) {
252 av_log(NULL, AV_LOG_ERROR, "Can't find encoder\n");250 av_log(NULL, AV_LOG_ERROR, "Can't find encoder\n");
tests/api/api-h264-test.c+0−2
@@ -158,8 +158,6 @@ int main(int argc, char **argv) · 157 unmodified lines
158 return 1;158 return 1;
159 }159 }
160 160
161 av_register_all();
162
163 if (video_decode_example(argv[1]) != 0)161 if (video_decode_example(argv[1]) != 0)
164 return 1;162 return 1;
165 163
tests/api/api-seek-test.c+0−2
@@ -279,8 +279,6 @@ int main(int argc, char **argv) · 278 unmodified lines
279 return 1;279 return 1;
280 }280 }
281 281
282 av_register_all();
283
284 if (seek_test(argv[1], argv[2], argv[3]) != 0)282 if (seek_test(argv[1], argv[2], argv[3]) != 0)
285 return 1;283 return 1;
286 284

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t