d6629d69dc
- Enable WebM encoding. - Stop stripping the shared libraries which explains why I was seeing no symbol table with the shared libraries. - Build all of FFmpeg with -fomit-frame-pointer on i386 instead of hacking the various Makefile's and having to add more files as further updates are made. Use default CFLAGS (-O2) on i386 now too instead of overriding with -O. - Remove the UINT64_C hack. - Update HOMEPAGE to use the ffmpeg.org domain. - Various other cleaning up and fixes for the port. From Brad, ok dcoppa@
27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
$OpenBSD: patch-ffplay_c,v 1.4 2011/04/12 22:59:07 sthen Exp $
|
|
--- ffplay.c.orig Fri Apr 8 16:05:20 2011
|
|
+++ ffplay.c Fri Apr 8 16:12:46 2011
|
|
@@ -2211,7 +2211,7 @@ static int stream_component_open(VideoState *is, int s
|
|
AVFormatContext *ic = is->ic;
|
|
AVCodecContext *avctx;
|
|
AVCodec *codec;
|
|
- SDL_AudioSpec wanted_spec, spec;
|
|
+ SDL_AudioSpec wanted_spec;
|
|
|
|
if (stream_index < 0 || stream_index >= ic->nb_streams)
|
|
return -1;
|
|
@@ -2256,11 +2256,11 @@ static int stream_component_open(VideoState *is, int s
|
|
wanted_spec.samples = SDL_AUDIO_BUFFER_SIZE;
|
|
wanted_spec.callback = sdl_audio_callback;
|
|
wanted_spec.userdata = is;
|
|
- if (SDL_OpenAudio(&wanted_spec, &spec) < 0) {
|
|
+ if (SDL_OpenAudio(&wanted_spec, NULL) < 0) {
|
|
fprintf(stderr, "SDL_OpenAudio: %s\n", SDL_GetError());
|
|
return -1;
|
|
}
|
|
- is->audio_hw_buf_size = spec.size;
|
|
+ is->audio_hw_buf_size = wanted_spec.size;
|
|
is->audio_src_fmt= AV_SAMPLE_FMT_S16;
|
|
}
|
|
|