History

avformat/format: move mime_type_opt declaration to where its used

also remove a related dead store

Michael Niedermayer committed 12 years ago

Commit e96fb981 parent 27123a71 file · +1 −2Browse files

Showing the changes to libavformat/format.c (1 of 1 file). Show all

Unified · Split

libavformat/format.c+1−2
@@ -243,7 +243,6 @@ int av_probe_input_buffer2(AVIOContext *pb, AVInputFormat **fmt, · 242 unmodified lines
243243 int ret = 0, probe_size, buf_offset = 0;
244244 int score = 0;
245245 int ret2;
246− uint8_t *mime_type_opt = NULL;
247246
248247 if (!max_probe_size)
249248 max_probe_size = PROBE_BUF_MAX;
@@ -257,9 +256,9 @@ int av_probe_input_buffer2(AVIOContext *pb, AVInputFormat **fmt, · 7 unmodified lines
257256 return AVERROR(EINVAL);
258257
259258 if (pb->av_class) {
259+ uint8_t *mime_type_opt = NULL;
260260 av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type_opt);
261261 pd.mime_type = (const char *)mime_type_opt;
262− mime_type_opt = NULL;
263262 }
264263 #if 0
265264 if (!*fmt && pb->av_class && av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type) >= 0 && mime_type) {

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