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
235235 {
236236 ResampleContext *c;
237237 AudioData *fifo_buf = NULL;
238− int ret = 0;
239238
240239 if (compensation_distance < 0)
241240 return AVERROR(EINVAL);
@@ -254,10 +253,8 @@ int avresample_set_compensation(AVAudioResampleContext *avr, int sample_delta, · 12 unmodified lines
254253 } else {
255254 c->dst_incr = c->ideal_dst_incr;
256255 }
257− return 0;
258256
259− ff_audio_data_free(&fifo_buf);
260− return ret;
257+ return 0;
261258 }
262259
263260 static 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