History

lavr: Remove unreachable code

Vittorio Giovara committed 11 years ago

Commit c7247eb1 parent dc54c781 file · +1 −4Browse files

Unified · Split

libavresample/resample.c+1−4
@@ -235,7 +235,6 @@ int avresample_set_compensation(AVAudioResampleContext *avr, int sample_delta, · 234 unmodified lines
235{235{
236 ResampleContext *c;236 ResampleContext *c;
237 AudioData *fifo_buf = NULL;237 AudioData *fifo_buf = NULL;
238 int ret = 0;
239 238
240 if (compensation_distance < 0)239 if (compensation_distance < 0)
241 return AVERROR(EINVAL);240 return AVERROR(EINVAL);
@@ -254,10 +253,8 @@ int avresample_set_compensation(AVAudioResampleContext *avr, int sample_delta, · 12 unmodified lines
254 } else {253 } else {
255 c->dst_incr = c->ideal_dst_incr;254 c->dst_incr = c->ideal_dst_incr;
256 }255 }
257 return 0;
258 256
259 ff_audio_data_free(&fifo_buf);257 return 0;
260 return ret;
261}258}
262 259
263static int resample(ResampleContext *c, void *dst, const void *src,260static int resample(ResampleContext *c, void *dst, const void *src,

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